$extrastylesheet
#include <coupling_matrix.h>
Public Member Functions | |
| CouplingMatrix (const unsigned int n=0) | |
| unsigned char | operator() (const unsigned int i, const unsigned int j) const |
| unsigned char & | operator() (const unsigned int i, const unsigned int j) |
| unsigned int | size () const |
| void | resize (const unsigned int n) |
| void | clear () |
| bool | empty () const |
Private Attributes | |
| std::vector< unsigned char > | _values |
| unsigned int | _size |
This class defines a coupling matrix. A coupling matrix is simply a matrix of ones and zeros describing how different components in a system couple with each other. A coupling matrix is necessarily square but not necessarily symmetric.
Definition at line 42 of file coupling_matrix.h.
| libMesh::CouplingMatrix::CouplingMatrix | ( | const unsigned int | n = 0 | ) | [inline, explicit] |
| void libMesh::CouplingMatrix::clear | ( | ) | [inline] |
| bool libMesh::CouplingMatrix::empty | ( | ) | const [inline] |
Definition at line 175 of file coupling_matrix.h.
References _size.
Referenced by libMesh::SparsityPattern::Build::operator()().
{
return (_size == 0);
}
| unsigned char libMesh::CouplingMatrix::operator() | ( | const unsigned int | i, |
| const unsigned int | j | ||
| ) | const [inline] |
| unsigned char & libMesh::CouplingMatrix::operator() | ( | const unsigned int | i, |
| const unsigned int | j | ||
| ) | [inline] |
| void libMesh::CouplingMatrix::resize | ( | const unsigned int | n | ) | [inline] |
| unsigned int libMesh::CouplingMatrix::size | ( | ) | const [inline] |
Definition at line 144 of file coupling_matrix.h.
References _size.
Referenced by libMesh::SparsityPattern::Build::operator()().
{
return _size;
}
unsigned int libMesh::CouplingMatrix::_size [private] |
The size of the matrix.
Definition at line 100 of file coupling_matrix.h.
Referenced by clear(), empty(), operator()(), resize(), and size().
std::vector<unsigned char> libMesh::CouplingMatrix::_values [private] |
The actual matrix values. These are stored as unsigned chars because a vector of bools is not what you think.
Definition at line 95 of file coupling_matrix.h.
Referenced by clear(), operator()(), and resize().