#include <coupling_matrix.h>
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
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 41 of file coupling_matrix.h.
Definition at line 109 of file coupling_matrix.h.
References resize().
:
_size(n)
{
this->resize(n);
}
Definition at line 163 of file coupling_matrix.h.
References _size, and _values.
{
_size = 0;
_values.clear();
}
Definition at line 173 of file coupling_matrix.h.
References _size.
Referenced by SparsityPattern::Build::operator()().
{
return (_size == 0);
}
Definition at line 130 of file coupling_matrix.h.
References _size, and _values.
{
libmesh_assert (i < _size);
libmesh_assert (j < _size);
return _values[i*_size + j];
}
Definition at line 118 of file coupling_matrix.h.
References _size, and _values.
{
libmesh_assert (i < _size);
libmesh_assert (j < _size);
return _values[i*_size + j];
}
Definition at line 150 of file coupling_matrix.h.
References _size, and _values.
Referenced by CouplingMatrix().
{
_size = n;
_values.resize(_size*_size);
for (unsigned int i=0; i<_values.size(); i++)
_values[i] = 0;
}
Definition at line 142 of file coupling_matrix.h.
References _size.
Referenced by SparsityPattern::Build::operator()().
{
return _size;
}
Definition at line 98 of file coupling_matrix.h.
Referenced by clear(), empty(), operator()(), resize(), and size().
Definition at line 93 of file coupling_matrix.h.
Referenced by clear(), operator()(), and resize().
Generated automatically by Doxygen for libMesh from the source code.