Skip to content

Commit f0ab1ee

Browse files
committed
new bindings
1 parent 1e154d4 commit f0ab1ee

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

sparsediffpy/_bindings/bindings.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ static PyMethodDef DNLPMethods[] = {
154154
"Initialize Jacobian COO structures"},
155155
{"get_jacobian_sparsity_coo", py_get_jacobian_sparsity_coo, METH_VARARGS,
156156
"Get Jacobian sparsity in COO format"},
157-
{"eval_jacobian_vals", py_eval_jacobian_vals, METH_VARARGS,
157+
{"problem_eval_jacobian_vals", py_problem_eval_jacobian_vals, METH_VARARGS,
158158
"Evaluate Jacobian and return values array"},
159159
{"problem_init_hessian_coo_lower_triangular",
160160
py_problem_init_hessian_coo_lower_triangular, METH_VARARGS,
161161
"Initialize lower-triangular Hessian COO structures"},
162-
{"get_hessian_sparsity_coo", py_get_hessian_sparsity_coo, METH_VARARGS,
162+
{"get_problem_hessian_sparsity_coo", py_get_problem_hessian_sparsity_coo, METH_VARARGS,
163163
"Get Hessian sparsity in COO format (lower triangular)"},
164-
{"eval_hessian_vals_coo", py_eval_hessian_vals_coo, METH_VARARGS,
164+
{"problem_eval_hessian_vals_coo", py_problem_eval_hessian_vals_coo, METH_VARARGS,
165165
"Evaluate Hessian and return COO values array"},
166166
{NULL, NULL, 0, NULL}};
167167

sparsediffpy/_bindings/problem/hessian.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static PyObject *py_get_hessian(PyObject *self, PyObject *args)
120120
return Py_BuildValue("(OOO(ii))", data, indices, indptr, H->m, H->n);
121121
}
122122

123-
static PyObject *py_get_hessian_sparsity_coo(PyObject *self, PyObject *args)
123+
static PyObject *py_get_problem_hessian_sparsity_coo(PyObject *self, PyObject *args)
124124
{
125125
PyObject *prob_capsule;
126126
if (!PyArg_ParseTuple(args, "O", &prob_capsule))
@@ -163,7 +163,7 @@ static PyObject *py_get_hessian_sparsity_coo(PyObject *self, PyObject *args)
163163
return Py_BuildValue("(OO(ii))", rows, cols, coo->m, coo->n);
164164
}
165165

166-
static PyObject *py_eval_hessian_vals_coo(PyObject *self, PyObject *args)
166+
static PyObject *py_problem_eval_hessian_vals_coo(PyObject *self, PyObject *args)
167167
{
168168
PyObject *prob_capsule;
169169
double obj_factor;

sparsediffpy/_bindings/problem/jacobian.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static PyObject *py_get_jacobian_sparsity_coo(PyObject *self, PyObject *args)
145145
return Py_BuildValue("(OO(ii))", rows, cols, coo->m, coo->n);
146146
}
147147

148-
static PyObject *py_eval_jacobian_vals(PyObject *self, PyObject *args)
148+
static PyObject *py_problem_eval_jacobian_vals(PyObject *self, PyObject *args)
149149
{
150150
PyObject *prob_capsule;
151151
if (!PyArg_ParseTuple(args, "O", &prob_capsule))

0 commit comments

Comments
 (0)