| 8506 | |
| 8507 | |
| 8508 | SWIGINTERN 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; |
| 8548 | fail: |
| 8549 | return NULL; |
| 8550 | } |
| 8551 | |
| 8552 | |
| 8553 | SWIGINTERN PyObject *_wrap_new_ProblemData(PyObject *self, PyObject *args) { |
nothing calls this directly
no test coverage detected