![]() |
SuperSCS
1.3.2
|
#include "glbopts.h"Go to the source code of this file.
Data Structures | |
| struct | scs_cs_sparse |
| Matrix in compressed-column or triplet form. More... | |
Typedefs | |
| typedef struct scs_cs_sparse | scs_cs |
| Matrix in compressed-column or triplet form. More... | |
Functions | |
| scs_cs * | scs_cs_compress (const scs_cs *T) |
| Compress a triplet matrix into a column-packed representation. More... | |
| scs_cs * | scs_cs_done (scs_cs *C, void *w, void *x, scs_int ok) |
Frees the memory of x and w>. More... | |
| 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. More... | |
| scs_cs * | scs_cs_spfree (scs_cs *A) |
| scs_float | scs_cs_cumsum (scs_int *p, scs_int *c, scs_int n) |
| scs_int * | scs_cs_pinv (scs_int const *p, scs_int n) |
| scs_cs * | scs_cs_symperm (const scs_cs *A, const scs_int *pinv, scs_int values) |
| typedef struct scs_cs_sparse scs_cs |
Matrix in compressed-column or triplet form.
This is a subset of the routines in the CSPARSE package by Tim Davis et. al. For the full package please visit http://www.cise.ufl.edu/research/sparse/CSparse/.
Compress a triplet matrix into a column-packed representation.
Frees the memory of x and w>.
If ok is nonzero, it returns C, otherwise it frees C (it calls scs_cs_spfree) and returns SCS_NULL.
| C | |
| w | |
| x | |
| ok |
Allocates a sparse matrix of given dimensions.
| m | number of rows |
| n | number of columns |
| nzmax | maximum number of nonzero elements |
| values | whether to allocate memory for the matrix values |
| triplet | whether the triplet representation is used |
1.8.6