Skylark (Sketching Library)
0.1
|
00001 /* Header to test of C modules for arrays for Python: C_test.c */ 00002 00003 /* ==== Prototypes =================================== */ 00004 00005 00006 /* .... Python callable Matrix functions ..................*/ 00007 static PyObject *crossentropy_prox(PyObject *self, PyObject *args); 00008 static PyObject *crossentropy_obj(PyObject *self, PyObject *args); 00009 static PyObject *hinge_prox(PyObject *self, PyObject *args); 00010 static PyObject *hinge_obj(PyObject *self, PyObject *args); 00011 int logexp(int index, double* v, int n, double lambda, double* x, int MAXITER, double epsilon, int DISPLAY); 00012 double logsumexp(double* x, int n); 00013 double objective(int index, double* x, double* v, int n, double lambda); 00014 double normsquare(double* x, double* y, int n);