concepts::TIndex< F > Class Template Reference
T matrix for linear and regular elements. More...
#include <tmatrix.hh>
Public Member Functions | |
virtual void | extract (const concepts::Vector< F > &solution, concepts::Array< F > &coeff) const |
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 |
uint | index (const uint i) const |
Returns the number of the global degree of freedom assigned to the ith local degree of freedom. More... | |
uint | m () const |
Returns the number of rows. More... | |
uint | n () const |
Returns the number of columns. More... | |
void | operator() (const ElementMatrix< F > &A, ElementMatrix< F > &B) const |
Application operator. More... | |
void | operator() (const ElementMatrix<::std::complex< F > > &A, ElementMatrix<::std::complex< F > > &B) const |
void | setM (uint m) |
TIndex (const uint m, const uint n, const Array< uint > &idx) | |
Constructor. More... | |
TIndex (const uint m, const uint n, uint idx[]) | |
Constructor. More... | |
virtual void | usedIdx (TColumn< bool > &c) const |
The entries in c are true iff the corresponding local dof in any Column of this Matrix is non-zero, i.e. More... | |
virtual | ~TIndex () |
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... | |
Private Attributes | |
Array< uint > | idx_ |
Detailed Description
template<class F>
class concepts::TIndex< F >
T matrix for linear and regular elements.
Definition at line 428 of file tmatrix.hh.
Constructor & Destructor Documentation
◆ TIndex() [1/2]
concepts::TIndex< F >::TIndex | ( | const uint | m, |
const uint | n, | ||
uint | idx[] | ||
) |
Constructor.
- Parameters
-
m Number of rows n Number of columns idx Map from the local degrees of freedom to the global ones
◆ TIndex() [2/2]
concepts::TIndex< F >::TIndex | ( | const uint | m, |
const uint | n, | ||
const Array< uint > & | idx | ||
) |
Constructor.
- Parameters
-
m Number of rows n Number of columns idx Map from the local degrees of freedom to the global ones
◆ ~TIndex()
|
virtual |
Member Function Documentation
◆ extract() [1/2]
|
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)
Implements concepts::TMatrixBase< F >.
◆ extract() [2/2]
|
virtual |
Implements concepts::TMatrixBase< F >.
◆ index()
|
inlinevirtual |
Returns the number of the global degree of freedom assigned to the ith local degree of freedom.
Implements concepts::TMatrixBase< F >.
Definition at line 462 of file tmatrix.hh.
◆ info()
|
protected |
◆ m()
|
inlineinherited |
Returns the number of rows.
Definition at line 388 of file tmatrix.hh.
◆ n()
|
inlineinherited |
Returns the number of columns.
Definition at line 393 of file tmatrix.hh.
◆ operator()() [1/2]
|
virtual |
Application operator.
Computes the application of the T matrix on A and returns B: . Here, B is a copy of A since the degrees of freedom are not reordered.
- Parameters
-
A Element matrix B Result
Implements concepts::TMatrixBase< F >.
◆ operator()() [2/2]
|
virtual |
Implements concepts::TMatrixBase< F >.
◆ setM()
|
inlineinherited |
Definition at line 390 of file tmatrix.hh.
◆ usedIdx()
|
virtual |
The entries in c are true iff the corresponding local dof in any Column of this Matrix is non-zero, i.e.
used. FIXME: why use TColumn<bool> and not simply` Array<bool>?
- Precondition
- number of local degrees of freedom (ldof) of TMatrix, i.e. included TColumns, has to accord with ldof of c
Implements concepts::TMatrixBase< F >.
Member Data Documentation
◆ idx_
|
private |
Definition at line 478 of file tmatrix.hh.
◆ m_
|
protectedinherited |
Number of rows.
Definition at line 420 of file tmatrix.hh.
◆ n_
|
protectedinherited |
Number of columns.
Definition at line 418 of file tmatrix.hh.
The documentation for this class was generated from the following file:
- space/tmatrix.hh