FEMTIC
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
DoubleSparseMatrix Class Reference

#include <DoubleSparseMatrix.h>

Inheritance diagram for DoubleSparseMatrix:
Inheritance graph
[legend]

Public Member Functions

 DoubleSparseMatrix ()
 
 DoubleSparseMatrix (const int nrows, const int ncols, const int nrhs=1)
 
virtual ~DoubleSparseMatrix ()
 
virtual void setNumRowsAndColumns (const int nrows, const int ncols)
 
virtual void setStructureByTripletFormat (const int row, const int col)
 
virtual void setStructureAndAddValueByTripletFormat (const int row, const int col, const double val)
 
void convertToCRSFormat ()
 
virtual void addNonZeroValues (const int row, const int col, const double val)
 
void zeroClearNonZeroValues ()
 
void addRightHandSideVector (const int row, const double val, const int irhs=0)
 
void zeroClearRightHandSideVector ()
 
virtual void initializeMatrixAndRhsVectors (const int nrows, const int ncols, const int nrhs)
 
int getNumRows () const
 
int getNumColumns () const
 
int getNumRightHandSideVectors () const
 
bool hasConvertedToCRSFormat () const
 
void reallocateMemoryForRightHandSideVectors (const int nrhs)
 
virtual void releaseMemory ()
 
void copyRhsVector (double *vecOut) const
 
void debugWriteMatrix () const
 
void debugWriteRightHandSide () const
 
int getRowIndexCRS (const int iRow) const
 
int getColumnsCRS (const int iNonZero) const
 
double getValueCRS (const int iNonZero) const
 
double getRightHandSideVector (const int row, const int irhs=0) const
 
void calcMatrixVectorProduct (const double *invVec, double *outVec) const
 
void calcMatrixVectorProductUsingTransposedMatrix (const double *invVec, double *outVec) const
 

Protected Member Functions

void deleteTripletMatrix ()
 

Protected Attributes

int m_numRows
 
int m_numColumns
 
int m_numNonZeros
 
int m_numRightHandSideVectors
 
bool m_hasConvertedToCRSFormat
 
std::map< int, double > * m_matrixTripletFormat
 
long long int * m_rowIndex
 
long long int * m_columns
 
double * m_values
 
double * m_rightHandSideVector
 

Private Member Functions

 DoubleSparseMatrix (const DoubleSparseMatrix &matrix)
 
DoubleSparseMatrixoperator= (const DoubleSparseMatrix &rhs)
 

Constructor & Destructor Documentation

◆ DoubleSparseMatrix() [1/3]

DoubleSparseMatrix::DoubleSparseMatrix ( )
explicit

◆ DoubleSparseMatrix() [2/3]

DoubleSparseMatrix::DoubleSparseMatrix ( const int  nrows,
const int  ncols,
const int  nrhs = 1 
)
explicit

◆ ~DoubleSparseMatrix()

DoubleSparseMatrix::~DoubleSparseMatrix ( )
virtual

◆ DoubleSparseMatrix() [3/3]

DoubleSparseMatrix::DoubleSparseMatrix ( const DoubleSparseMatrix matrix)
private

Member Function Documentation

◆ addNonZeroValues()

void DoubleSparseMatrix::addNonZeroValues ( const int  row,
const int  col,
const double  val 
)
virtual

◆ addRightHandSideVector()

void DoubleSparseMatrix::addRightHandSideVector ( const int  row,
const double  val,
const int  irhs = 0 
)

◆ calcMatrixVectorProduct()

void DoubleSparseMatrix::calcMatrixVectorProduct ( const double *  invVec,
double *  outVec 
) const

◆ calcMatrixVectorProductUsingTransposedMatrix()

void DoubleSparseMatrix::calcMatrixVectorProductUsingTransposedMatrix ( const double *  invVec,
double *  outVec 
) const

◆ convertToCRSFormat()

void DoubleSparseMatrix::convertToCRSFormat ( )

◆ copyRhsVector()

void DoubleSparseMatrix::copyRhsVector ( double *  vecOut) const

◆ debugWriteMatrix()

void DoubleSparseMatrix::debugWriteMatrix ( ) const

◆ debugWriteRightHandSide()

void DoubleSparseMatrix::debugWriteRightHandSide ( ) const

◆ deleteTripletMatrix()

void DoubleSparseMatrix::deleteTripletMatrix ( )
protected

◆ getColumnsCRS()

int DoubleSparseMatrix::getColumnsCRS ( const int  iNonZero) const

◆ getNumColumns()

int DoubleSparseMatrix::getNumColumns ( ) const

◆ getNumRightHandSideVectors()

int DoubleSparseMatrix::getNumRightHandSideVectors ( ) const

◆ getNumRows()

int DoubleSparseMatrix::getNumRows ( ) const

◆ getRightHandSideVector()

double DoubleSparseMatrix::getRightHandSideVector ( const int  row,
const int  irhs = 0 
) const

◆ getRowIndexCRS()

int DoubleSparseMatrix::getRowIndexCRS ( const int  iRow) const

◆ getValueCRS()

double DoubleSparseMatrix::getValueCRS ( const int  iNonZero) const

◆ hasConvertedToCRSFormat()

bool DoubleSparseMatrix::hasConvertedToCRSFormat ( ) const

◆ initializeMatrixAndRhsVectors()

void DoubleSparseMatrix::initializeMatrixAndRhsVectors ( const int  nrows,
const int  ncols,
const int  nrhs 
)
virtual

◆ operator=()

DoubleSparseMatrix & DoubleSparseMatrix::operator= ( const DoubleSparseMatrix rhs)
private

◆ reallocateMemoryForRightHandSideVectors()

void DoubleSparseMatrix::reallocateMemoryForRightHandSideVectors ( const int  nrhs)

◆ releaseMemory()

void DoubleSparseMatrix::releaseMemory ( )
virtual

Reimplemented in DoubleSparseSquareMatrix.

◆ setNumRowsAndColumns()

void DoubleSparseMatrix::setNumRowsAndColumns ( const int  nrows,
const int  ncols 
)
virtual

Reimplemented in DoubleSparseSquareMatrix.

◆ setStructureAndAddValueByTripletFormat()

void DoubleSparseMatrix::setStructureAndAddValueByTripletFormat ( const int  row,
const int  col,
const double  val 
)
virtual

◆ setStructureByTripletFormat()

void DoubleSparseMatrix::setStructureByTripletFormat ( const int  row,
const int  col 
)
virtual

◆ zeroClearNonZeroValues()

void DoubleSparseMatrix::zeroClearNonZeroValues ( )

◆ zeroClearRightHandSideVector()

void DoubleSparseMatrix::zeroClearRightHandSideVector ( )

Member Data Documentation

◆ m_columns

long long int* DoubleSparseMatrix::m_columns
protected

◆ m_hasConvertedToCRSFormat

bool DoubleSparseMatrix::m_hasConvertedToCRSFormat
protected

◆ m_matrixTripletFormat

std::map< int, double >* DoubleSparseMatrix::m_matrixTripletFormat
protected

◆ m_numColumns

int DoubleSparseMatrix::m_numColumns
protected

◆ m_numNonZeros

int DoubleSparseMatrix::m_numNonZeros
protected

◆ m_numRightHandSideVectors

int DoubleSparseMatrix::m_numRightHandSideVectors
protected

◆ m_numRows

int DoubleSparseMatrix::m_numRows
protected

◆ m_rightHandSideVector

double* DoubleSparseMatrix::m_rightHandSideVector
protected

◆ m_rowIndex

long long int* DoubleSparseMatrix::m_rowIndex
protected

◆ m_values

double* DoubleSparseMatrix::m_values
protected

The documentation for this class was generated from the following files: