28 #ifndef SCS_CS_H_GUARD
29 #define SCS_CS_H_GUARD
scs_float * x
numerical values, size nzmax
Definition: cs.h:52
scs_int * p
column pointers (size n+1) or col indices (size nzmax)
Definition: cs.h:50
scs_int nzmax
maximum number of entries
Definition: cs.h:47
scs_int * scs_cs_pinv(scs_int const *p, scs_int n)
scs_cs * scs_cs_done(scs_cs *C, void *w, void *x, scs_int ok)
Frees the memory of x and w>.
scs_float scs_cs_cumsum(scs_int *p, scs_int *c, scs_int n)
int scs_int
Definition: glbopts.h:96
scs_int m
number of rows
Definition: cs.h:48
scs_cs * scs_cs_symperm(const scs_cs *A, const scs_int *pinv, scs_int values)
scs_int n
number of columns
Definition: cs.h:49
scs_cs * scs_cs_spfree(scs_cs *A)
double scs_float
Definition: glbopts.h:100
scs_int nz
Number of entries in triplet matrix, -1 for compressed-col.
Definition: cs.h:53
Matrix in compressed-column or triplet form.
Definition: cs.h:46
scs_cs * scs_cs_compress(const scs_cs *T)
Compress a triplet matrix into a column-packed representation.
struct scs_cs_sparse scs_cs
Matrix in compressed-column or triplet form.
scs_cs * scs_cs_spalloc(scs_int m, scs_int n, scs_int nzmax, scs_int values, scs_int triplet)
Allocates a sparse matrix of given dimensions.
scs_int * i
row indices, size nzmax
Definition: cs.h:51