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... | |
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 184 of file general_purpose_preconditioners.h.
|
inline |
Constructor (no arguments)
Definition at line 188 of file general_purpose_preconditioners.h.
|
inline |
|
inline |
Destructor (does nothing)
Definition at line 199 of file general_purpose_preconditioners.h.
|
inline |
|
inline |
access function for the coefficient's (row or column) index
Definition at line 222 of file general_purpose_preconditioners.h.
References Index.
Referenced by CompressedMatrixCoefficient(), operator<(), and operator=().
|
inline |
Access function for the coefficient's (row or column_ index (const version)
Definition at line 235 of file general_purpose_preconditioners.h.
References Index.
|
inline |
Less Than Operator (for the STL sort function)
Definition at line 216 of file general_purpose_preconditioners.h.
|
inline |
|
inline |
access function for the coefficient value
Definition at line 228 of file general_purpose_preconditioners.h.
References Value.
Referenced by CompressedMatrixCoefficient(), and operator=().
|
inline |
access function for the coefficient's value (const version)
Definition at line 241 of file general_purpose_preconditioners.h.
References Value.
|
private |
the row or column index of the compressed-matrix coefficient
Definition at line 248 of file general_purpose_preconditioners.h.
Referenced by CompressedMatrixCoefficient(), index(), operator<(), and operator=().
|
private |
the value of the compressed-matrix coefficient
Definition at line 251 of file general_purpose_preconditioners.h.
Referenced by CompressedMatrixCoefficient(), operator=(), and value().