7 #ifndef __IPTRIPLETTOCSRCONVERTER_HPP__ 8 #define __IPTRIPLETTOCSRCONVERTER_HPP__ 168 Index nonzeros_triplet,
170 Index nonzeros_compressed,
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.
Index offset_
Offset for CSR numbering.
Index IRow() const
Row position.
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.
bool operator<(const TripletEntry &Tentry) const
Comparison operator.
Index * ipos_first_
First elements assignment.
const Index * JA() const
Return the JA array for the condensed format.
This file contains a base class for all exceptions and a set of macros to help with exceptions...
Index * ja_
Array storing the values for JA in the condensed format.
Storing the reference count of all the smart pointers that currently reference it.
void operator=(const TripletToCSRConverter &)
Default Assignment Operator.
bool initialized_
Flag indicating if initialize method had been called.
ETriFull
Enum to specify half or full matrix storage.
Index * ia_
Array storing the values for IA in the condensed format.
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 PosTriplet() const
Index in original triplet matrix.
Index * ipos_double_compressed_
Position of multiple elements in compressed matrix.
virtual ~TripletToCSRConverter()
Destructor.
const Index * iPosFirst() const
Index JCol() const
Column position.