9 #ifndef __IPTRIPLETTOCSRCONVERTER_HPP__
10 #define __IPTRIPLETTOCSRCONVERTER_HPP__
Index * ipos_double_triplet_
Position of multiple elements in triplet matrix.
Class for one triplet position entry.
Lower (or Upper) triangular stored only.
Store both lower and upper parts.
TripletToCSRConverter()
Default Constructor.
void ConvertValues(Index nonzeros_triplet, const Number *a_triplet, Index nonzeros_compressed, Number *a_compressed)
Convert the values of the nonzero elements.
bool operator<(const TripletEntry &Tentry) const
Comparison operator.
Index offset_
Offset for CSR numbering.
Index InitializeConverter(Index dim, Index nonzeros, const Index *airn, const Index *ajcn)
Initialize the converter, given the fixed structure of the matrix.
double Number
Type of all numbers.
Class for converting symmetric matrices given in triplet format to matrices in compressed sparse row ...
void Set(Index i_row, Index j_col, Index i_pos_triplet)
Set the values of an entry.
Index * ipos_first_
First elements assignement.
Index PosTriplet() const
Index in original triplet matrix.
const Index * iPosFirst() const
Index * ja_
Array storing the values for JA in the condensed format.
void operator=(const TripletToCSRConverter &)
Overloaded Equals Operator.
bool initialized_
Flag indicating if initialize method had been called.
ETriFull
Enum to specifiy half or full matrix storage.
Index * ia_
Array storing the values for IA in the condensed format.
Index IRow() const
Row position.
const Index * IA() const
Return the IA array for the condensed format.
Index nonzeros_triplet_
Number of nonzeros in the triplet format.
Index dim_
Dimension of the matrix.
Index num_doubles_
Number of repeated entries.
ETriFull hf_
Indicator of half (ie lower only) or full (both upr and lwr) matrix.
int Index
Type of all indices of vectors, matrices etc.
Index nonzeros_compressed_
Number of nonzeros in the compressed format.
Index JCol() const
Column position.
Index * ipos_double_compressed_
Position of multiple elements in compressed matrix.
virtual ~TripletToCSRConverter()
Destructor.
const Index * JA() const
Return the JA array for the condensed format.