GenSVM
|
A structure to represent a sparse matrix in CSR format. More...
#include <gensvm_sparse.h>
Public Attributes | |
long | nnz |
number of nonzero elements More... | |
long | n_row |
number of rows of the original matrix More... | |
long | n_col |
number of columns of the original matrix More... | |
double * | values |
actual nonzero values, should be of length nnz More... | |
long * | ia |
cumulative row lengths, should be of length n_row+1 More... | |
long * | ja |
column indices, should be of length nnz More... | |
A structure to represent a sparse matrix in CSR format.
This structure holds a sparse matrix in the classic CSR format. Refer to Wikipedia for more details. The total storage requirement for this format is 2*nnz+n_row+1, so it only makes sense to use this format if the number of nonzeros is smaller than .
nnz | number of nonzero elements |
n_row | rows of the matrix |
n_col | columns of the matrix |
values | nonzero values (length nnz) |
ia | row indices (length n+1) |
ja | column indices (length nnz) |
Definition at line 55 of file gensvm_sparse.h.
long* GenSparse::ia |
cumulative row lengths, should be of length n_row+1
Definition at line 65 of file gensvm_sparse.h.
long* GenSparse::ja |
column indices, should be of length nnz
Definition at line 67 of file gensvm_sparse.h.
long GenSparse::n_col |
number of columns of the original matrix
Definition at line 60 of file gensvm_sparse.h.
long GenSparse::n_row |
number of rows of the original matrix
Definition at line 58 of file gensvm_sparse.h.
long GenSparse::nnz |
number of nonzero elements
Definition at line 56 of file gensvm_sparse.h.
double* GenSparse::values |
actual nonzero values, should be of length nnz
Definition at line 63 of file gensvm_sparse.h.