BEM++
2.0
|
Helper class used in construction of blocked boundary operators. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/assembly/blocked_operator_structure.hpp>
Public Member Functions | |
void | setBlock (size_t row, size_t column, const BoundaryOperator< BasisFunctionType, ResultType > &op) |
Store a boundary operator in a given block. More... | |
void | resetBlock (size_t row, size_t column) |
Reset a block. More... | |
void | reset () |
Reset all blocks. More... | |
BoundaryOperator < BasisFunctionType, ResultType > | block (size_t row, size_t column) const |
Return the boundary operator stored in a given block. More... | |
bool | isEmpty (size_t row, size_t column) const |
Return whether a block is empty. More... | |
size_t | rowCount () const |
Return the number of rows in the matrix. More... | |
size_t | columnCount () const |
Return the number of columns in the matrix. More... | |
Helper class used in construction of blocked boundary operators.
This class represents a matrix of boundary operators. To construct a blocked boundary operator, store individual boundary operators in appropriate rows and columns of a BlockedOperatorStructure object and pass this object to the constructor of the BlockedBoundaryOperator class for validation.
BoundaryOperator< BasisFunctionType, ResultType > Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::block | ( | size_t | row, |
size_t | column | ||
) | const |
Return the boundary operator stored in a given block.
This function returns the boundary operator stored the block from row row
and column column
, or a null (uninitialized) operator if no operator has previously been assigned to this block.
Referenced by Bempp::BlockedBoundaryOperator< BasisFunctionType, ResultType >::BlockedBoundaryOperator().
size_t Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::columnCount | ( | ) | const |
Return the number of columns in the matrix.
This function returns the smallest number such that all the blocks in columns with indices
are empty.
Referenced by Bempp::BlockedBoundaryOperator< BasisFunctionType, ResultType >::BlockedBoundaryOperator().
bool Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::isEmpty | ( | size_t | row, |
size_t | column | ||
) | const |
Return whether a block is empty.
This function returns true if no operator is stored in the block from row row
and column column
, false otherwise.
void Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::reset | ( | ) |
Reset all blocks.
This function restores the original (uninitialized) state of all blocks.
void Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::resetBlock | ( | size_t | row, |
size_t | column | ||
) |
Reset a block.
This function restores the original (uninitialized) state of the block from row row
and column column
.
size_t Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::rowCount | ( | ) | const |
Return the number of rows in the matrix.
This function returns the smallest number such that all the blocks in rows with indices
are empty.
Referenced by Bempp::BlockedBoundaryOperator< BasisFunctionType, ResultType >::BlockedBoundaryOperator().
void Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::setBlock | ( | size_t | row, |
size_t | column, | ||
const BoundaryOperator< BasisFunctionType, ResultType > & | op | ||
) |
Store a boundary operator in a given block.
This function stores operator op
in the block from row row
and column column
, replacing any operator that might have been stored there before.
References Bempp::BoundaryOperator< BasisFunctionType, ResultType >::isInitialized().