#include <NF_Triplet.hpp>
Public Member Functions | |
NF_Triplet () | |
NF_Triplet (const NF_Triplet &m) | |
NF_Triplet & | operator= (const NF_Triplet &m) |
virtual | ~NF_Triplet () |
void | add (int irow, int icol, double value) |
int | getNumber () const |
int | getNRows () const |
int | getNCols () const |
void | force (int nrow, int ncol) |
int | getRow (int i) const |
int | getCol (int i) const |
double | getValue (int i) const |
VectorDouble | getValues () const |
VectorInt | getRows (bool flag_from_1=false) const |
VectorInt | getCols (bool flag_from_1=false) const |
void | appendInPlace (const NF_Triplet &T2) |
cs * | buildCsFromTriplet () const |
Eigen::SparseMatrix< double > | buildEigenFromTriplet () const |
Static Public Member Functions | |
static NF_Triplet | createFromCs (const cs *mat, int shiftRow=0, int shiftCol=0) |
static NF_Triplet | createFromEigen (const Eigen::SparseMatrix< double > &mat, int shiftRow=0, int shiftCol=0) |
Public Attributes | |
DECLARE_TOTL | |
Has a specific implementation in the Target language. More... | |
Stores the contents of a sparse matrix in Triplet form The format is adapter to Eigen or to csparse
NF_Triplet::NF_Triplet | ( | ) |
NF_Triplet::NF_Triplet | ( | const NF_Triplet & | m | ) |
|
virtual |
void NF_Triplet::add | ( | int | irow, |
int | icol, | ||
double | value | ||
) |
void NF_Triplet::appendInPlace | ( | const NF_Triplet & | T2 | ) |
Append NF_Triplet 'T2' at the end of the current one
T2 | NF_Triplet to be appended |
cs * NF_Triplet::buildCsFromTriplet | ( | ) | const |
Eigen::SparseMatrix< double > NF_Triplet::buildEigenFromTriplet | ( | ) | const |
|
static |
|
static |
void NF_Triplet::force | ( | int | nrow, |
int | ncol | ||
) |
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 |
int NF_Triplet::getCol | ( | int | i | ) | const |
VectorInt NF_Triplet::getCols | ( | bool | flag_from_1 = false | ) | const |
|
inline |
|
inline |
|
inline |
int NF_Triplet::getRow | ( | int | i | ) | const |
VectorInt NF_Triplet::getRows | ( | bool | flag_from_1 = false | ) | const |
double NF_Triplet::getValue | ( | int | i | ) | const |
VectorDouble NF_Triplet::getValues | ( | ) | const |
NF_Triplet & NF_Triplet::operator= | ( | const NF_Triplet & | m | ) |
NF_Triplet::DECLARE_TOTL |
Has a specific implementation in the Target language.