#include <NF_Triplet.hpp>
Stores the contents of a sparse matrix in Triplet form The format is adapter to Eigen
Public Member Functions | |
NF_Triplet () | |
NF_Triplet (const NF_Triplet &r) | |
NF_Triplet & | operator= (const NF_Triplet &) |
virtual | ~NF_Triplet () |
void | add (Id irow, Id icol, double value) |
Id | getNElements () const |
Id | getNRows () const |
Id | getNCols () const |
void | force (Id nrow, Id ncol) |
Id | getRow (Id i) const |
Id | getCol (Id i) const |
double | getValue (Id i) const |
getValues () const | |
getRows (bool flag_from_1=false) const | |
getCols (bool flag_from_1=false) const | |
void | appendInPlace (const NF_Triplet &T2) |
::Eigen::SparseMatrix< double > | buildEigenFromTriplet () const |
Static Public Member Functions | |
static NF_Triplet | createFromEigen (const Eigen::SparseMatrix< double > &mat, Id shiftRow=0, Id shiftCol=0) |
Public Attributes | |
DECLARE_TOTL | |
Has a specific implementation in the Target language. | |
gstlrn::NF_Triplet::NF_Triplet | ( | ) |
gstlrn::NF_Triplet::NF_Triplet | ( | const NF_Triplet & | r | ) |
|
virtual |
void gstlrn::NF_Triplet::appendInPlace | ( | const NF_Triplet & | T2 | ) |
Append NF_Triplet 'T2' at the end of the current one
T2 | NF_Triplet to be appended |
Eigen::SparseMatrix< double > gstlrn::NF_Triplet::buildEigenFromTriplet | ( | ) | const |
|
static |
Force the dimension of the Sparse matrix This is done by adding a fictitious sample at position 'nrow-1' and 'ncol-1' with value 0
nrow | Ultimate number of rows |
ncol | Ultimate number of columns |
gstlrn::NF_Triplet::getCols | ( | bool | flag_from_1 = false | ) | const |
|
inline |
|
inline |
|
inline |
gstlrn::NF_Triplet::getRows | ( | bool | flag_from_1 = false | ) | const |
double gstlrn::NF_Triplet::getValue | ( | Id | i | ) | const |
gstlrn::NF_Triplet::getValues | ( | ) | const |
NF_Triplet & gstlrn::NF_Triplet::operator= | ( | const NF_Triplet & | r | ) |
gstlrn::NF_Triplet::DECLARE_TOTL |
Has a specific implementation in the Target language.