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

Function _wrap_ProblemData_getV

cvxpy/cvxcore/python/cvxcore_wrap.cxx:8418–8460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8416
8417
8418SWIGINTERN PyObject *_wrap_ProblemData_getV(PyObject *self, PyObject *args) {
8419 PyObject *resultobj = 0;
8420 ProblemData *arg1 = (ProblemData *) 0 ;
8421 double *arg2 = (double *) 0 ;
8422 int arg3 ;
8423 void *argp1 = 0 ;
8424 int res1 = 0 ;
8425 PyObject *array2 = NULL ;
8426 PyObject *swig_obj[2] ;
8427
8428 (void)self;
8429 if (!SWIG_Python_UnpackTuple(args, "ProblemData_getV", 2, 2, swig_obj)) SWIG_fail;
8430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_ProblemData, 0 | 0 );
8431 if (!SWIG_IsOK(res1)) {
8432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProblemData_getV" "', argument " "1"" of type '" "ProblemData *""'");
8433 }
8434 arg1 = reinterpret_cast< ProblemData * >(argp1);
8435 {
8436 npy_intp dims[1];
8437 if (!PyLong_Check(swig_obj[1]))
8438 {
8439 const char* typestring = pytype_string(swig_obj[1]);
8440 PyErr_Format(PyExc_TypeError,
8441 "Int dimension expected. '%s' given.",
8442 typestring);
8443 SWIG_fail;
8444 }
8445 arg3 = (int) PyLong_AsSsize_t(swig_obj[1]);
8446 if (arg3 == -1 && PyErr_Occurred()) SWIG_fail;
8447 dims[0] = (npy_intp) arg3;
8448 array2 = PyArray_SimpleNew(1, dims, NPY_DOUBLE);
8449 if (!array2) SWIG_fail;
8450 arg2 = (double*) array_data(array2);
8451 }
8452 (arg1)->getV(arg2,arg3);
8453 resultobj = SWIG_Py_Void();
8454 {
8455 resultobj = SWIG_Python_AppendOutput(resultobj,(PyObject*)array2);
8456 }
8457 return resultobj;
8458fail:
8459 return NULL;
8460}
8461
8462
8463SWIGINTERN PyObject *_wrap_ProblemData_getI(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
getVMethod · 0.45

Tested by

no test coverage detected