19 #ifdef MATLAB_MEX_FILE 25 #define NULL ((void *) 0) 57 #ifdef MATLAB_MEX_FILE 59 mxMalloc, mxCalloc, mxRealloc, mxFree,
62 malloc, calloc, realloc, free,
71 #ifdef MATLAB_MEX_FILE 109 #ifdef MATLAB_MEX_FILE 133 #ifdef MATLAB_MEX_FILE 181 if (nitems < 1) nitems = 1 ;
182 if (size_of_item < 1) size_of_item = 1 ;
183 size = nitems * size_of_item ;
185 if (size != ((
double) nitems) * size_of_item)
210 if (nitems < 1) nitems = 1 ;
211 if (size_of_item < 1) size_of_item = 1 ;
212 size = nitems * size_of_item ;
214 if (size != ((
double) nitems) * size_of_item)
221 p = (
void *) (SuiteSparse_config.
calloc_func) (nitems, size_of_item) ;
249 if (nitems_old < 1) nitems_old = 1 ;
250 if (nitems_new < 1) nitems_new = 1 ;
251 if (size_of_item < 1) size_of_item = 1 ;
252 size = nitems_new * size_of_item ;
254 if (size != ((
double) nitems_new) * size_of_item)
263 (*ok) = (
p !=
NULL) ;
265 else if (nitems_old == nitems_new)
277 if (nitems_new < nitems_old)
347 #ifdef SUITESPARSE_TIMER_ENABLED 358 clock_gettime (CLOCK_MONOTONIC, &t) ;
359 tic [0] = (double) (t.tv_sec) ;
360 tic [1] = (double) (t.tv_nsec) ;
396 return ((toc [0] - tic [0]) + 1
e-9 * (toc [1] - tic [1])) ;
413 return (toc [0] + 1
e-9 * toc [1]) ;
470 s = x *
sqrt (1.0 + r*r) ;
482 s = y *
sqrt (1.0 + r*r) ;
508 double ar,
double ai,
509 double br,
double bi,
510 double *cr,
double *ci
513 double tr, ti, r, den ;
518 tr = (ar + ai * r) / den ;
519 ti = (ai - ar * r) / den ;
525 tr = (ar * r +
ai) / den ;
526 ti = (ai * r - ar) / den ;
void * SuiteSparse_free(void *p)
const mpreal ai(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
double SuiteSparse_hypot(double x, double y)
double SuiteSparse_toc(double tic[2])
void *(* calloc_func)(size_t, size_t)
void *(* malloc_func)(size_t)
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
void toc(size_t id, const char *label)
int(* printf_func)(const char *,...)
double SuiteSparse_time(void)
struct SuiteSparse_config_struct SuiteSparse_config
#define SUITESPARSE_SUB_VERSION
void SuiteSparse_finish(void)
#define SUITESPARSE_SUBSUB_VERSION
void tic(size_t id, const char *labelC)
void SuiteSparse_start(void)
int SuiteSparse_divcomplex(double ar, double ai, double br, double bi, double *cr, double *ci)
void(* free_func)(void *)
void SuiteSparse_tic(double tic[2])
#define SUITESPARSE_VERSION
#define SUITESPARSE_MAIN_VERSION
void * SuiteSparse_calloc(size_t nitems, size_t size_of_item)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void * SuiteSparse_realloc(size_t nitems_new, size_t nitems_old, size_t size_of_item, void *p, int *ok)
void * SuiteSparse_malloc(size_t nitems, size_t size_of_item)
int SuiteSparse_version(int version[3])
int(* divcomplex_func)(double, double, double, double, double *, double *)
double(* hypot_func)(double, double)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
void *(* realloc_func)(void *, size_t)