Struct that represents the sparsity structure of the Sparse Matrix in CRS. Implementation has been adapted from Krylstat (https://github.com/ Froskekongen/KRYLSTAT) library (c) Erlend Aune erlen under GPL2+. da@m ath.n tnu. no
在文件 SparseMatrixOperator.h 第 28 行定义.
Public 成员函数 | |
SparsityStructure () | |
SparsityStructure (index_t *row_offsets, index_t *column_indices, index_t num_rows) | |
~SparsityStructure () | |
void | display_sparsity_structure () |
Public 属性 | |
index_t | m_num_rows |
int32_t ** | m_ptr |
default constructor
在文件 SparseMatrixOperator.h 第 31 行定义.
SparsityStructure | ( | index_t * | row_offsets, |
index_t * | column_indices, | ||
index_t | num_rows | ||
) |
constructor
row_offsets | outer index ptr in CRS |
column_indices | inner index ptr in CRS |
num_rows | number of rows |
在文件 SparseMatrixOperator.h 第 40 行定义.
~SparsityStructure | ( | ) |
destructor
在文件 SparseMatrixOperator.h 第 60 行定义.
void display_sparsity_structure | ( | ) |
display sparsity structure
在文件 SparseMatrixOperator.h 第 68 行定义.
index_t m_num_rows |
number of rows
在文件 SparseMatrixOperator.h 第 85 行定义.
int32_t** m_ptr |
the pointer that stores the nnz entries
在文件 SparseMatrixOperator.h 第 88 行定义.