SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Member Functions | Public Attributes
SparsityStructure Struct Reference

Detailed Description

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.nosp@m.da@m.nosp@m.ath.n.nosp@m.tnu..nosp@m.no under GPL2+.

Definition at line 28 of file SparseMatrixOperator.h.

Public Member Functions

 SparsityStructure ()
 
 SparsityStructure (index_t *row_offsets, index_t *column_indices, index_t num_rows)
 
 ~SparsityStructure ()
 
void display_sparsity_structure ()
 

Public Attributes

index_t m_num_rows
 
int32_t ** m_ptr
 

Constructor & Destructor Documentation

default constructor

Definition at line 31 of file SparseMatrixOperator.h.

SparsityStructure ( index_t row_offsets,
index_t column_indices,
index_t  num_rows 
)

constructor

Parameters
row_offsetsouter index ptr in CRS
column_indicesinner index ptr in CRS
num_rowsnumber of rows

Definition at line 40 of file SparseMatrixOperator.h.

destructor

Definition at line 60 of file SparseMatrixOperator.h.

Member Function Documentation

void display_sparsity_structure ( )

display sparsity structure

Definition at line 68 of file SparseMatrixOperator.h.

Member Data Documentation

index_t m_num_rows

number of rows

Definition at line 85 of file SparseMatrixOperator.h.

int32_t** m_ptr

the pointer that stores the nnz entries

Definition at line 88 of file SparseMatrixOperator.h.


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

SHOGUN Machine Learning Toolbox - Documentation