MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / _wrap_ProblemData_getJ

Function _wrap_ProblemData_getJ

cvxpy/cvxcore/python/cvxcore_wrap.cxx:8508–8550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8506
8507
8508SWIGINTERN PyObject *_wrap_ProblemData_getJ(PyObject *self, PyObject *args) {
8509 PyObject *resultobj = 0;
8510 ProblemData *arg1 = (ProblemData *) 0 ;
8511 double *arg2 = (double *) 0 ;
8512 int arg3 ;
8513 void *argp1 = 0 ;
8514 int res1 = 0 ;
8515 PyObject *array2 = NULL ;
8516 PyObject *swig_obj[2] ;
8517
8518 (void)self;
8519 if (!SWIG_Python_UnpackTuple(args, "ProblemData_getJ", 2, 2, swig_obj)) SWIG_fail;
8520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_ProblemData, 0 | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProblemData_getJ" "', argument " "1"" of type '" "ProblemData *""'");
8523 }
8524 arg1 = reinterpret_cast< ProblemData * >(argp1);
8525 {
8526 npy_intp dims[1];
8527 if (!PyLong_Check(swig_obj[1]))
8528 {
8529 const char* typestring = pytype_string(swig_obj[1]);
8530 PyErr_Format(PyExc_TypeError,
8531 "Int dimension expected. '%s' given.",
8532 typestring);
8533 SWIG_fail;
8534 }
8535 arg3 = (int) PyLong_AsSsize_t(swig_obj[1]);
8536 if (arg3 == -1 && PyErr_Occurred()) SWIG_fail;
8537 dims[0] = (npy_intp) arg3;
8538 array2 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
8539 if (!array2) SWIG_fail;
8540 arg2 = (double*) array_data(array2);
8541 }
8542 (arg1)->getJ(arg2,arg3);
8543 resultobj = SWIG_Py_Void();
8544 {
8545 resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array2);
8546 }
8547 return resultobj;
8548fail:
8549 return NULL;
8550}
8551
8552
8553SWIGINTERN PyObject *_wrap_new_ProblemData(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 4

pytype_stringFunction · 0.85
SWIG_Py_VoidFunction · 0.85
SWIG_Python_AppendOutputFunction · 0.85
getJMethod · 0.45

Tested by

no test coverage detected