BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType > Class Template Reference

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...
 

Detailed Description

template<typename BasisFunctionType, typename ResultType>
class Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >

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.

Member Function Documentation

template<typename BasisFunctionType , typename ResultType >
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().

template<typename BasisFunctionType , typename ResultType >
size_t Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::columnCount ( ) const

Return the number of columns in the matrix.

This function returns the smallest number $n \geq 0$ such that all the blocks in columns with indices $n, n+1, \dots$ are empty.

Referenced by Bempp::BlockedBoundaryOperator< BasisFunctionType, ResultType >::BlockedBoundaryOperator().

template<typename BasisFunctionType , typename ResultType >
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.

template<typename BasisFunctionType , typename ResultType >
void Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::reset ( )

Reset all blocks.

This function restores the original (uninitialized) state of all blocks.

template<typename BasisFunctionType , typename ResultType >
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.

template<typename BasisFunctionType , typename ResultType >
size_t Bempp::BlockedOperatorStructure< BasisFunctionType, ResultType >::rowCount ( ) const

Return the number of rows in the matrix.

This function returns the smallest number $m \geq 0$ such that all the blocks in rows with indices $m, m+1, \dots$ are empty.

Referenced by Bempp::BlockedBoundaryOperator< BasisFunctionType, ResultType >::BlockedBoundaryOperator().

template<typename BasisFunctionType , typename ResultType >
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.

Note
Row and column numbers start from 0.

References Bempp::BoundaryOperator< BasisFunctionType, ResultType >::isInitialized().


The documentation for this class was generated from the following files: