FEMTIC
Public Member Functions | Private Member Functions | List of all members
RougheningMatrix Class Reference

#include <RougheningMatrix.h>

Inheritance diagram for RougheningMatrix:
Inheritance graph
[legend]
Collaboration diagram for RougheningMatrix:
Collaboration graph
[legend]

Public Member Functions

 RougheningMatrix ()
 
 RougheningMatrix (const int nrows, const int ncols, const int nRhs=1)
 
virtual ~RougheningMatrix ()
 
virtual void setStructureByTripletFormat (const int row, const int col)
 
virtual void setStructureAndAddValueByTripletFormat (const int row, const int col, const double val)
 
virtual void addNonZeroValues (const int row, const int col, const double val)
 
void makeRTRMatrix (DoubleSparseSquareSymmetricMatrix &RTRMatrix, const double smallValueOnDiagonals=0.0) const
 
double calcModelRoughness (const double *modelVec) const
 
void calcVectorOfModelRoughness (const double *modelVec, double *roughnessVec) const
 
void postmultiplyDiagonalMatrix (const double *diagMatrix)
 
void outputRougheningMatrix (const std::string &fileName) const
 
- Public Member Functions inherited from DoubleSparseMatrix
 DoubleSparseMatrix ()
 
 DoubleSparseMatrix (const int nrows, const int ncols, const int nrhs=1)
 
virtual ~DoubleSparseMatrix ()
 
virtual void setNumRowsAndColumns (const int nrows, const int ncols)
 
void convertToCRSFormat ()
 
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
 

Private Member Functions

 RougheningMatrix (const RougheningMatrix &matrix)
 
RougheningMatrixoperator= (const RougheningMatrix &rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from DoubleSparseMatrix
void deleteTripletMatrix ()
 
- Protected Attributes inherited from DoubleSparseMatrix
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
 

Constructor & Destructor Documentation

◆ RougheningMatrix() [1/3]

RougheningMatrix::RougheningMatrix ( )
explicit

◆ RougheningMatrix() [2/3]

RougheningMatrix::RougheningMatrix ( const int  nrows,
const int  ncols,
const int  nRhs = 1 
)
explicit

◆ ~RougheningMatrix()

RougheningMatrix::~RougheningMatrix ( )
virtual

◆ RougheningMatrix() [3/3]

RougheningMatrix::RougheningMatrix ( const RougheningMatrix matrix)
private

Member Function Documentation

◆ addNonZeroValues()

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

Reimplemented from DoubleSparseMatrix.

◆ calcModelRoughness()

double RougheningMatrix::calcModelRoughness ( const double *  modelVec) const

◆ calcVectorOfModelRoughness()

void RougheningMatrix::calcVectorOfModelRoughness ( const double *  modelVec,
double *  roughnessVec 
) const

◆ makeRTRMatrix()

void RougheningMatrix::makeRTRMatrix ( DoubleSparseSquareSymmetricMatrix RTRMatrix,
const double  smallValueOnDiagonals = 0.0 
) const

◆ operator=()

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

◆ outputRougheningMatrix()

void RougheningMatrix::outputRougheningMatrix ( const std::string &  fileName) const

◆ postmultiplyDiagonalMatrix()

void RougheningMatrix::postmultiplyDiagonalMatrix ( const double *  diagMatrix)

◆ setStructureAndAddValueByTripletFormat()

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

Reimplemented from DoubleSparseMatrix.

◆ setStructureByTripletFormat()

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

Reimplemented from DoubleSparseMatrix.


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