NAG C++ classes for Hyperspectral Imaging  0.1
Data Fields
nag::csr_mat< FPType > Struct Template Reference

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...
 

Detailed Description

template<class FPType>
struct nag::csr_mat< FPType >

A type used to hold the components of a sparse matrix in compressed sparse row (CSR) format.

Field Documentation

template<class FPType>
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.

template<class FPType>
size_t nag::csr_mat< FPType >::m

m is the number of rows of the matrix.

template<class FPType>
size_t nag::csr_mat< FPType >::n

n is the number of columns of the matrix.

template<class FPType>
size_t nag::csr_mat< FPType >::nnz

nnz is the number of non-zero elements.

template<class FPType>
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).

template<class FPType>
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.


The documentation for this struct was generated from the following file: