Documentation
|
|
Go to the source code of this file.
Namespaces | |
| af | |
Macros | |
| #define | SPARSE(ty) |
Enumerations | |
| enum | af_sparse_t { af_csr, af_csc, af_coo } |
| Specify which sparse storage type. More... | |
Functions | |||||||||||||||||||||||||
| AFAPI array | getrow (int nrows, int *rows_idx, array sp) | ||||||||||||||||||||||||
| AFAPI array | getcol (int ncols, int *cols_idx, array sp) | ||||||||||||||||||||||||
Construct CSR-format sparse matrix from pointers | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| AFAPI array | sparse (const int *row_idx, const int *col_idx, const float *values, int nrows, int ncols, int nonzero, af_source_t src=afHost, unsigned ngfor=0) | ||||||||||||||||||||||||
| AFAPI array | sparse (const int *row_idx, const int *col_idx, const double *values, int nrows, int ncols, int nonzero, af_source_t src=afHost, unsigned ngfor=0) | ||||||||||||||||||||||||
| AFAPI array | sparse (const int *row_idx, const int *col_idx, const cfloat *values, int nrows, int ncols, int nonzero, af_source_t src=afHost, unsigned ngfor=0) | ||||||||||||||||||||||||
| AFAPI array | sparse (const int *row_idx, const int *col_idx, const cdouble *values, int nrows, int ncols, int nonzero, af_source_t src=afHost, unsigned ngfor=0) | ||||||||||||||||||||||||
Construct sparse matrix from Dense | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| AFAPI array | sparse (array dense) | ||||||||||||||||||||||||
Construct sparse matrix from arrays | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| AFAPI array | sparse (array &row_idx, array &col_idx, array &values, int nrows=-1, int ncols=-1, af_sparse_t format=af_coo) | ||||||||||||||||||||||||
Create dense matrix from sparse matrix | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| AFAPI array | dense (array sparse) | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| AFAPI afError | where (array &I, array &J, array &Val, array sp, af_sparse_t format=af_coo) | ||||||||||||||||||||||||
| #define SPARSE | ( | ty | ) |