NAG C++ classes for Hyperspectral Imaging
0.1
|
A type used to hold the components of a sparse matrix in compressed sparse row (CSR) format. More...
#include <SpecImage.hpp>
Data Fields | |
size_t | nnz |
nnz is the number of non-zero elements. More... | |
size_t | m |
m is the number of rows of the matrix. More... | |
size_t | n |
n is the number of columns of the matrix. More... | |
std::vector< size_t > | row_ptr |
row_ptr is a vector of length m + 1. row_ptr[i] gives the start of row i in the col_indx and values vectors (the final element should be equal to nnz). More... | |
std::vector< uint32_t > | col_indx |
col_indx is a vector of length nnz. col_indx[i] gives the column index of the ith non-zero element. More... | |
std::vector< FPType > | values |
values is a vector of length nnz. values[i] gives the value of the ith non-zero element. More... | |
A type used to hold the components of a sparse matrix in compressed sparse row (CSR) format.
std::vector<uint32_t> nag::csr_mat< FPType >::col_indx |
col_indx is a vector of length nnz. col_indx[i] gives the column index of the ith non-zero element.
size_t nag::csr_mat< FPType >::m |
m is the number of rows of the matrix.
size_t nag::csr_mat< FPType >::n |
n is the number of columns of the matrix.
size_t nag::csr_mat< FPType >::nnz |
nnz is the number of non-zero elements.
std::vector<size_t> nag::csr_mat< FPType >::row_ptr |
row_ptr is a vector of length m + 1. row_ptr[i] gives the start of row i in the col_indx and values vectors (the final element should be equal to nnz).
std::vector<FPType> nag::csr_mat< FPType >::values |
values is a vector of length nnz. values[i] gives the value of the ith non-zero element.