LifeV
|
MatrixBlockMonolithicEpetraView - class representing a block in a MatrixBlockMonolithicEpetra. More...
#include <MatrixBlockMonolithicEpetraView.hpp>
Private Attributes | |
UInt | M_numRows |
UInt | M_numColumns |
UInt | M_firstRowIndex |
UInt | M_lastRowIndex |
UInt | M_firstColumnIndex |
UInt | M_lastColumnIndex |
matrix_Type * | M_matrix |
Typedefs | |
typedef MatrixEpetra< DataType > | matrix_Type |
Constructors, destructor | |
MatrixBlockMonolithicEpetraView () | |
default constructor. More... | |
MatrixBlockMonolithicEpetraView (const MatrixBlockMonolithicEpetraView< DataType > &mbv) | |
Copy constructor. More... | |
~MatrixBlockMonolithicEpetraView () | |
default virtual destructor More... | |
Methods | |
void | showMe (std::ostream &output=std::cout) const |
Print the informations about the MatrixBlockMonolithicEpetraView. More... | |
bool | filled () const |
Tells if the viewed matrix is already filled. More... | |
void | addToCoefficients (UInt const numRows, UInt const numColumns, std::vector< Int > const &blockRowIndices, std::vector< Int > const &blockColumnIndices, DataType *const *const localValues, Int format=Epetra_FECrsMatrix::COLUMN_MAJOR) const |
Function to assemble an elemental matrix in a block. More... | |
void | sumIntoCoefficients (UInt const numRows, UInt const numColumns, std::vector< Int > const &blockRowIndices, std::vector< Int > const &blockColumnIndices, DataType *const *const localValues, Int format=Epetra_FECrsMatrix::COLUMN_MAJOR) const |
Function to sum an elemental matrix in a block which is already closed. More... | |
Set Methods | |
void | setup (const UInt &firstRow, const UInt &firstColumn, const UInt &numRows, const UInt &numColumns, matrix_Type *A) |
Get Methods | |
UInt | numRows () const |
Returns the number of rows in the block. More... | |
UInt | numColumns () const |
Returns the number of columns in the block. More... | |
UInt | firstRowIndex () const |
Returns the index of the first row in the block. More... | |
UInt | lastRowIndex () const |
Returns the index of the last row in the block. More... | |
UInt | firstColumnIndex () const |
Returns the index of the first column in the block. More... | |
UInt | lastColumnIndex () const |
Returns the index of the last column in the block. More... | |
matrix_Type * | matrixPtr () const |
Return the pointer of the full matrix. More... | |
Private Methods | |
MatrixBlockMonolithicEpetraView< DataType > | operator= (const MatrixBlockMonolithicEpetraView &otherView) |
No assignement operator, it is missleading (would copy the views, not the blocks!) More... | |
MatrixBlockMonolithicEpetraView - class representing a block in a MatrixBlockMonolithicEpetra.
The MatrixBlockMonolithicEpetraView class contains data related to block of a matrix. It is useful to setup a clean and easy-to-use blocks management.
For more information about the block structures in LifeV, see this page.
Remark
Using the operator "=" is not valid for this class! Indeed, copying the view would not copy the data stored in the matrix, which can be confusing. If the copy of the block is the intended use, one should use a method from the BlockUtils.
Definition at line 67 of file MatrixBlockMonolithicEpetraView.hpp.
typedef MatrixEpetra<DataType> matrix_Type |
Definition at line 78 of file MatrixBlockMonolithicEpetraView.hpp.
default constructor.
Definition at line 208 of file MatrixBlockMonolithicEpetraView.hpp.
MatrixBlockMonolithicEpetraView | ( | const MatrixBlockMonolithicEpetraView< DataType > & | mbv | ) |
Copy constructor.
Definition at line 221 of file MatrixBlockMonolithicEpetraView.hpp.
default virtual destructor
Definition at line 234 of file MatrixBlockMonolithicEpetraView.hpp.
void showMe | ( | std::ostream & | output = std::cout | ) | const |
Print the informations about the MatrixBlockMonolithicEpetraView.
Definition at line 245 of file MatrixBlockMonolithicEpetraView.hpp.
bool filled | ( | ) | const |
Tells if the viewed matrix is already filled.
Definition at line 259 of file MatrixBlockMonolithicEpetraView.hpp.
void addToCoefficients | ( | UInt const | numRows, |
UInt const | numColumns, | ||
std::vector< Int > const & | blockRowIndices, | ||
std::vector< Int > const & | blockColumnIndices, | ||
DataType *const *const | localValues, | ||
Int | format = Epetra_FECrsMatrix::COLUMN_MAJOR |
||
) | const |
Function to assemble an elemental matrix in a block.
Definition at line 268 of file MatrixBlockMonolithicEpetraView.hpp.
void sumIntoCoefficients | ( | UInt const | numRows, |
UInt const | numColumns, | ||
std::vector< Int > const & | blockRowIndices, | ||
std::vector< Int > const & | blockColumnIndices, | ||
DataType *const *const | localValues, | ||
Int | format = Epetra_FECrsMatrix::COLUMN_MAJOR |
||
) | const |
Function to sum an elemental matrix in a block which is already closed.
Definition at line 294 of file MatrixBlockMonolithicEpetraView.hpp.
void setup | ( | const UInt & | firstRow, |
const UInt & | firstColumn, | ||
const UInt & | numRows, | ||
const UInt & | numColumns, | ||
matrix_Type * | A | ||
) |
Set all the informations relative to the block
firstRow | First row in the block |
firstColumn | First column in the block |
numRows | Number of rows in the block |
numColumns | Number of columns in the block |
A | Matrix which contains the block |
Definition at line 326 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Returns the number of rows in the block.
Definition at line 140 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Returns the number of columns in the block.
Definition at line 146 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Returns the index of the first row in the block.
Definition at line 152 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Returns the index of the last row in the block.
Definition at line 158 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Returns the index of the first column in the block.
Definition at line 164 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Returns the index of the last column in the block.
Definition at line 170 of file MatrixBlockMonolithicEpetraView.hpp.
|
inline |
Return the pointer of the full matrix.
Definition at line 176 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
No assignement operator, it is missleading (would copy the views, not the blocks!)
|
private |
Definition at line 194 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 195 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 196 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 197 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 198 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 199 of file MatrixBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 200 of file MatrixBlockMonolithicEpetraView.hpp.