Public Member Functions | Private Attributes | List of all members
oomph::CompressedMatrixCoefficient Class Reference

Class for a compressed-matrix coefficent (for either CC or CR matrices). Contains the (row or column) index and value of a coefficient in a compressed row or column. Currently only used in ILU(0) for CCDoubleMatrices to allow the coefficients in each compressed column [row] to be sorted by their row [column] index. More...

#include <general_purpose_preconditioners.h>

Public Member Functions

 CompressedMatrixCoefficient ()
 Constructor (no arguments) More...
 
 CompressedMatrixCoefficient (const unsigned &index, const double &value)
 Constructor (takes the index and value as arguments) More...
 
 ~CompressedMatrixCoefficient ()
 Destructor (does nothing) More...
 
 CompressedMatrixCoefficient (const CompressedMatrixCoefficient &a)
 Copy Constructor. Not Broken. Required for STL sort function. More...
 
void operator= (const CompressedMatrixCoefficient &a)
 Assignment Operator. Not Broken. Required for STL sort function. More...
 
bool operator< (const CompressedMatrixCoefficient &a) const
 Less Than Operator (for the STL sort function) More...
 
unsigned & index ()
 access function for the coefficient's (row or column) index More...
 
double & value ()
 access function for the coefficient value More...
 
unsigned index () const
 Access function for the coefficient's (row or column_ index (const version) More...
 
double value () const
 access function for the coefficient's value (const version) More...
 

Private Attributes

unsigned Index
 the row or column index of the compressed-matrix coefficient More...
 
double Value
 the value of the compressed-matrix coefficient More...
 

Detailed Description

Class for a compressed-matrix coefficent (for either CC or CR matrices). Contains the (row or column) index and value of a coefficient in a compressed row or column. Currently only used in ILU(0) for CCDoubleMatrices to allow the coefficients in each compressed column [row] to be sorted by their row [column] index.

Definition at line 206 of file general_purpose_preconditioners.h.

Constructor & Destructor Documentation

oomph::CompressedMatrixCoefficient::CompressedMatrixCoefficient ( )
inline

Constructor (no arguments)

Definition at line 212 of file general_purpose_preconditioners.h.

oomph::CompressedMatrixCoefficient::CompressedMatrixCoefficient ( const unsigned &  index,
const double &  value 
)
inline

Constructor (takes the index and value as arguments)

Definition at line 215 of file general_purpose_preconditioners.h.

References index(), Index, value(), and Value.

oomph::CompressedMatrixCoefficient::~CompressedMatrixCoefficient ( )
inline

Destructor (does nothing)

Definition at line 223 of file general_purpose_preconditioners.h.

oomph::CompressedMatrixCoefficient::CompressedMatrixCoefficient ( const CompressedMatrixCoefficient a)
inline

Copy Constructor. Not Broken. Required for STL sort function.

Definition at line 226 of file general_purpose_preconditioners.h.

References index(), Index, value(), and Value.

Member Function Documentation

unsigned& oomph::CompressedMatrixCoefficient::index ( )
inline

access function for the coefficient's (row or column) index

Definition at line 246 of file general_purpose_preconditioners.h.

References Index.

Referenced by CompressedMatrixCoefficient(), operator<(), and operator=().

unsigned oomph::CompressedMatrixCoefficient::index ( ) const
inline

Access function for the coefficient's (row or column_ index (const version)

Definition at line 253 of file general_purpose_preconditioners.h.

References Index.

bool oomph::CompressedMatrixCoefficient::operator< ( const CompressedMatrixCoefficient a) const
inline

Less Than Operator (for the STL sort function)

Definition at line 240 of file general_purpose_preconditioners.h.

References index(), and Index.

void oomph::CompressedMatrixCoefficient::operator= ( const CompressedMatrixCoefficient a)
inline

Assignment Operator. Not Broken. Required for STL sort function.

Definition at line 233 of file general_purpose_preconditioners.h.

References index(), Index, value(), and Value.

double& oomph::CompressedMatrixCoefficient::value ( )
inline

access function for the coefficient value

Definition at line 249 of file general_purpose_preconditioners.h.

References Value.

Referenced by CompressedMatrixCoefficient(), and operator=().

double oomph::CompressedMatrixCoefficient::value ( ) const
inline

access function for the coefficient's value (const version)

Definition at line 256 of file general_purpose_preconditioners.h.

References Value.

Member Data Documentation

unsigned oomph::CompressedMatrixCoefficient::Index
private

the row or column index of the compressed-matrix coefficient

Definition at line 261 of file general_purpose_preconditioners.h.

Referenced by CompressedMatrixCoefficient(), index(), operator<(), and operator=().

double oomph::CompressedMatrixCoefficient::Value
private

the value of the compressed-matrix coefficient

Definition at line 264 of file general_purpose_preconditioners.h.

Referenced by CompressedMatrixCoefficient(), operator=(), and value().


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