concepts::TMatrixBase< F > Class Template Referenceabstract
An abstract class for a T matrix. More...
#include <element.hh>
Public Member Functions | |
virtual void | extract (const concepts::Vector< F > &solution, concepts::Array< F > &coeff) const =0 |
Extracts the part of solution belonging to this T matrix into coeff . More... | |
virtual void | extract (const concepts::Vector<::std::complex< F > > &solution, concepts::Array<::std::complex< F > > &coeff) const =0 |
virtual uint | index (const uint i) const =0 |
Maps the local index i to the global index. More... | |
uint | m () const |
Returns the number of rows. More... | |
uint | n () const |
Returns the number of columns. More... | |
virtual void | operator() (const ElementMatrix< F > &A, ElementMatrix< F > &B) const =0 |
Application operator. More... | |
virtual void | operator() (const ElementMatrix<::std::complex< F > > &A, ElementMatrix<::std::complex< F > > &B) const =0 |
void | setM (uint m) |
TMatrixBase (const uint m, const uint n) | |
Constructor. More... | |
TMatrixBase (const uint n) | |
Constructor. More... | |
virtual void | usedIdx (TColumn< bool > &c) const =0 |
Marks the used local indices in c with true , the local indices which are not set to false . More... | |
virtual | ~TMatrixBase () |
Protected Member Functions | |
virtual ::std::ostream & | info (::std::ostream &os) const |
Protected Attributes | |
uint | m_ |
Number of rows. More... | |
uint | n_ |
Number of columns. More... | |
Detailed Description
template<class F>
class concepts::TMatrixBase< F >
An abstract class for a T matrix.
A T matrix describes the mapping of local degrees of freedom to global degrees of freedom.
A T matrix describes how the local shape functions are glued together to form to global (continuous) shape functions. It contains the informatin how an element matrix is assembled into the global matrix. It is defined as follows:
Let be the number of local shape functions in the element and the number of global basis functions . The T matrix of the element describes how the restriction of the global basis functions onto the element are constructed from the local shape functions:
and in vector notation: .
Definition at line 37 of file element.hh.
Constructor & Destructor Documentation
◆ TMatrixBase() [1/2]
concepts::TMatrixBase< F >::TMatrixBase | ( | const uint | n | ) |
Constructor.
Sets the number of rows to zero.
- Parameters
-
n Number of columns
◆ TMatrixBase() [2/2]
concepts::TMatrixBase< F >::TMatrixBase | ( | const uint | m, |
const uint | n | ||
) |
Constructor.
- Parameters
-
m Number of rows n Number of columns
◆ ~TMatrixBase()
|
virtual |
Member Function Documentation
◆ extract() [1/2]
|
pure virtual |
Extracts the part of solution
belonging to this T matrix into coeff
.
coeff
is resized and zeroed before filling it with the coefficients.
- Parameters
-
solution Vector in the global space (input) coeff Local coefficients of this T matrix (output)
Implemented in vectorial::TMatrixOffset< F >, concepts::TIndex< F >, and concepts::TIndex< concepts::Real >.
◆ extract() [2/2]
|
pure virtual |
Implemented in concepts::TIndex< F >, and concepts::TIndex< concepts::Real >.
◆ index()
|
pure virtual |
Maps the local index i to the global index.
Implemented in concepts::TIndex< F >, and concepts::TIndex< concepts::Real >.
◆ info()
|
protected |
◆ m()
|
inline |
Returns the number of rows.
Definition at line 388 of file tmatrix.hh.
◆ n()
|
inline |
Returns the number of columns.
Definition at line 393 of file tmatrix.hh.
◆ operator()() [1/2]
|
pure virtual |
Application operator.
Computes the application of the T matrix on A and returns B: . Typical usage: assembling the element matrices. The element matrix A is transformed using
and then simply added entry by entry into the global matrix. This is the case for element matrices which have the same "left" and "right" T matrix. Otherwise, this looks like
- Parameters
-
A Element matrix B Result
Implemented in concepts::TIndex< F >, concepts::TIndex< concepts::Real >, and vectorial::TMatrixOffset< F >.
◆ operator()() [2/2]
|
pure virtual |
Implemented in concepts::TIndex< F >, and concepts::TIndex< concepts::Real >.
◆ setM()
|
inline |
Definition at line 390 of file tmatrix.hh.
◆ usedIdx()
|
pure virtual |
Marks the used local indices in c
with true
, the local indices which are not set to false
.
- Precondition
c
has the correct size
Implemented in concepts::TIndex< F >, concepts::TIndex< concepts::Real >, and vectorial::TMatrixOffset< F >.
Member Data Documentation
◆ m_
|
protected |
Number of rows.
Definition at line 420 of file tmatrix.hh.
◆ n_
|
protected |
Number of columns.
Definition at line 418 of file tmatrix.hh.
The documentation for this class was generated from the following files:
- space/element.hh
- space/tmatrix.hh