oomph::CompressedMatrixCoefficient Class Reference

#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...
 
unsignedindex ()
 access function for the coefficient's (row or column) index More...
 
doublevalue ()
 access function for the coefficient value More...
 
unsigned index () const
 
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.

Constructor & Destructor Documentation

◆ CompressedMatrixCoefficient() [1/3]

oomph::CompressedMatrixCoefficient::CompressedMatrixCoefficient ( )
inline

Constructor (no arguments)

188 {}

◆ CompressedMatrixCoefficient() [2/3]

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

Constructor (takes the index and value as arguments)

192  {
193  // store the index and value
194  Index = index;
195  Value = value;
196  }
unsigned & index()
access function for the coefficient's (row or column) index
Definition: general_purpose_preconditioners.h:222
double Value
the value of the compressed-matrix coefficient
Definition: general_purpose_preconditioners.h:251
unsigned Index
the row or column index of the compressed-matrix coefficient
Definition: general_purpose_preconditioners.h:248
double & value()
access function for the coefficient value
Definition: general_purpose_preconditioners.h:228

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

◆ ~CompressedMatrixCoefficient()

oomph::CompressedMatrixCoefficient::~CompressedMatrixCoefficient ( )
inline

Destructor (does nothing)

199 {}

◆ CompressedMatrixCoefficient() [3/3]

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

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

203  {
204  Index = a.index();
205  Value = a.value();
206  }
const Scalar * a
Definition: level2_cplx_impl.h:32

References a, Index, and Value.

Member Function Documentation

◆ index() [1/2]

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

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

223  {
224  return Index;
225  }

References Index.

Referenced by CompressedMatrixCoefficient().

◆ index() [2/2]

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

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

236  {
237  return Index;
238  }

References Index.

◆ operator<()

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

Less Than Operator (for the STL sort function)

217  {
218  return Index < a.index();
219  }

References a, and Index.

◆ operator=()

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

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

210  {
211  Index = a.index();
212  Value = a.value();
213  }

References a, Index, and Value.

◆ value() [1/2]

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

access function for the coefficient value

229  {
230  return Value;
231  }

References Value.

Referenced by CompressedMatrixCoefficient().

◆ value() [2/2]

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

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

242  {
243  return Value;
244  }

References Value.

Member Data Documentation

◆ Index

unsigned oomph::CompressedMatrixCoefficient::Index
private

the row or column index of the compressed-matrix coefficient

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

◆ Value

double oomph::CompressedMatrixCoefficient::Value
private

the value of the compressed-matrix coefficient

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


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