6 if (!A)
return (NULL) ;
9 A->nzmax = nzmax =
CS_MAX (nzmax, 1) ;
10 A->nz = triplet ? 0 : -1 ;
14 return ((!A->p || !A->i || (values && !A->x)) ?
cs_spfree (A) : A) ;
20 CS_INT ok, oki, okj = 1, okx = 1 ;
22 if (nzmax <= 0) nzmax = (
CS_CSC (A)) ? (A->p [A->n]) : A->nz ;
23 nzmax =
CS_MAX (nzmax, 1) ;
27 ok = (oki && okj && okx) ;
28 if (ok) A->nzmax = nzmax ;
35 if (!A)
return (NULL) ;
45 if (!N)
return (NULL) ;
56 if (!S)
return (NULL) ;
70 if (!D)
return (NULL) ;
75 return ((!D->p || !D->r || !D->q || !D->s) ?
cs_dfree (D) : D) ;
81 if (!D)
return (NULL) ;
csn * cs_ndone(csn *N, cs *C, void *w, void *x, CS_INT ok)
cs * cs_spalloc(CS_INT m, CS_INT n, CS_INT nzmax, CS_INT values, CS_INT triplet)
void * cs_calloc(CS_INT n, size_t size)
void * cs_realloc(void *p, CS_INT n, size_t size, CS_INT *ok)
cs * cs_done(cs *C, void *w, void *x, CS_INT ok)
CS_INT cs_sprealloc(cs *A, CS_INT nzmax)
csd * cs_dalloc(CS_INT m, CS_INT n)
void * cs_malloc(CS_INT n, size_t size)
csd * cs_ddone(csd *D, cs *C, void *w, CS_INT ok)
CS_INT * cs_idone(CS_INT *p, cs *C, void *w, CS_INT ok)