|
dune-istl 2.10
|
A multiple of the identity matrix of static size. More...
#include <dune/istl/scaledidmatrix.hh>
Public Types | |
| enum | { rows = n , cols = n } |
| export size More... | |
| typedef K | field_type |
| export the type representing the field | |
| typedef K | block_type |
| export the type representing the components | |
| typedef std::size_t | size_type |
| The type used for the index access and size operations. | |
| typedef DiagonalRowVector< K, n > | row_type |
| Each row is implemented by a field vector. | |
| typedef row_type | reference |
| typedef DiagonalRowVectorConst< K, n > | const_row_type |
| typedef const_row_type | const_reference |
| typedef ContainerWrapperIterator< const WrapperType, reference, reference > | Iterator |
| Iterator class for sequential access. | |
| typedef Iterator | iterator |
| typedef for stl compliant access | |
| typedef Iterator | RowIterator |
| rename the iterators for easier access | |
| typedef row_type::Iterator | ColIterator |
| rename the iterators for easier access | |
| typedef ContainerWrapperIterator< const WrapperType, const_reference, const_reference > | ConstIterator |
| Iterator class for sequential access. | |
| typedef ConstIterator | const_iterator |
| typedef for stl compliant access | |
| typedef ConstIterator | ConstRowIterator |
| rename the iterators for easier access | |
| typedef const_row_type::ConstIterator | ConstColIterator |
| rename the iterators for easier access | |
Public Member Functions | |
| ScaledIdentityMatrix () | |
| Default constructor. | |
| ScaledIdentityMatrix (const K &k) | |
| Constructor initializing the whole matrix with a scalar. | |
| ScaledIdentityMatrix & | operator= (const K &k) |
| bool | identical (const ScaledIdentityMatrix< K, n > &other) const |
| Iterator | begin () |
| begin iterator | |
| Iterator | end () |
| end iterator | |
| Iterator | beforeEnd () |
| Iterator | beforeBegin () |
| ConstIterator | begin () const |
| begin iterator | |
| ConstIterator | end () const |
| end iterator | |
| ConstIterator | beforeEnd () const |
| ConstIterator | beforeBegin () const |
| ScaledIdentityMatrix & | operator+= (const ScaledIdentityMatrix &y) |
| vector space addition | |
| ScaledIdentityMatrix & | operator-= (const ScaledIdentityMatrix &y) |
| vector space subtraction | |
| ScaledIdentityMatrix & | operator+= (const K &k) |
| addition to the diagonal | |
| ScaledIdentityMatrix & | operator-= (const K &k) |
| subtraction from the diagonal | |
| ScaledIdentityMatrix & | operator*= (const K &k) |
| vector space multiplication with scalar | |
| ScaledIdentityMatrix & | operator/= (const K &k) |
| vector space division by scalar | |
| bool | operator== (const ScaledIdentityMatrix &other) const |
| comparison operator | |
| bool | operator!= (const ScaledIdentityMatrix &other) const |
| incomparison operator | |
| template<class X , class Y > | |
| void | mv (const X &x, Y &y) const |
| y = A x | |
| template<class X , class Y > | |
| void | mtv (const X &x, Y &y) const |
| y = A^T x | |
| template<class X , class Y > | |
| void | umv (const X &x, Y &y) const |
| y += A x | |
| template<class X , class Y > | |
| void | umtv (const X &x, Y &y) const |
| y += A^T x | |
| template<class X , class Y > | |
| void | umhv (const X &x, Y &y) const |
| y += A^H x | |
| template<class X , class Y > | |
| void | mmv (const X &x, Y &y) const |
| y -= A x | |
| template<class X , class Y > | |
| void | mmtv (const X &x, Y &y) const |
| y -= A^T x | |
| template<class X , class Y > | |
| void | mmhv (const X &x, Y &y) const |
| y -= A^H x | |
| template<class X , class Y > | |
| void | usmv (const K &alpha, const X &x, Y &y) const |
| y += alpha A x | |
| template<class X , class Y > | |
| void | usmtv (const K &alpha, const X &x, Y &y) const |
| y += alpha A^T x | |
| template<class X , class Y > | |
| void | usmhv (const K &alpha, const X &x, Y &y) const |
| y += alpha A^H x | |
| FieldTraits< field_type >::real_type | frobenius_norm () const |
| frobenius norm: sqrt(sum over squared values of entries) | |
| FieldTraits< field_type >::real_type | frobenius_norm2 () const |
| square of frobenius norm, need for block recursion | |
| FieldTraits< field_type >::real_type | infinity_norm () const |
| infinity norm (row sum norm, how to generalize for blocks?) | |
| FieldTraits< field_type >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values) | |
| template<class V > | |
| void | solve (V &x, const V &b) const |
| Solve system A x = b. | |
| void | invert () |
| Compute inverse. | |
| K | determinant () const |
| calculates the determinant of this matrix | |
| size_type | N () const |
| number of blocks in row direction | |
| size_type | M () const |
| number of blocks in column direction | |
| bool | exists (size_type i, size_type j) const |
| return true when (i,j) is in pattern | |
| reference | operator[] (size_type i) |
| Return reference object as row replacement. | |
| const_reference | operator[] (size_type i) const |
| Return const_reference object as row replacement. | |
| const K & | diagonal (size_type) const |
| Get const reference to diagonal entry. | |
| K & | diagonal (size_type) |
| Get reference to diagonal entry. | |
| const K & | scalar () const |
| Get const reference to the scalar diagonal value. | |
| K & | scalar () |
| Get reference to the scalar diagonal value. | |
Detailed Description
class Dune::ScaledIdentityMatrix< K, n >
A multiple of the identity matrix of static size.
Member Typedef Documentation
◆ block_type
| typedef K Dune::ScaledIdentityMatrix< K, n >::block_type |
export the type representing the components
◆ ColIterator
| typedef row_type::Iterator Dune::ScaledIdentityMatrix< K, n >::ColIterator |
rename the iterators for easier access
◆ const_iterator
| typedef ConstIterator Dune::ScaledIdentityMatrix< K, n >::const_iterator |
typedef for stl compliant access
◆ const_reference
| typedef const_row_type Dune::ScaledIdentityMatrix< K, n >::const_reference |
◆ const_row_type
| typedef DiagonalRowVectorConst<K,n> Dune::ScaledIdentityMatrix< K, n >::const_row_type |
◆ ConstColIterator
| typedef const_row_type::ConstIterator Dune::ScaledIdentityMatrix< K, n >::ConstColIterator |
rename the iterators for easier access
◆ ConstIterator
| typedef ContainerWrapperIterator<const WrapperType, const_reference, const_reference> Dune::ScaledIdentityMatrix< K, n >::ConstIterator |
Iterator class for sequential access.
◆ ConstRowIterator
| typedef ConstIterator Dune::ScaledIdentityMatrix< K, n >::ConstRowIterator |
rename the iterators for easier access
◆ field_type
| typedef K Dune::ScaledIdentityMatrix< K, n >::field_type |
export the type representing the field
◆ Iterator
| typedef ContainerWrapperIterator<const WrapperType, reference, reference> Dune::ScaledIdentityMatrix< K, n >::Iterator |
Iterator class for sequential access.
◆ iterator
| typedef Iterator Dune::ScaledIdentityMatrix< K, n >::iterator |
typedef for stl compliant access
◆ reference
| typedef row_type Dune::ScaledIdentityMatrix< K, n >::reference |
◆ row_type
| typedef DiagonalRowVector<K,n> Dune::ScaledIdentityMatrix< K, n >::row_type |
Each row is implemented by a field vector.
◆ RowIterator
| typedef Iterator Dune::ScaledIdentityMatrix< K, n >::RowIterator |
rename the iterators for easier access
◆ size_type
| typedef std::size_t Dune::ScaledIdentityMatrix< K, n >::size_type |
The type used for the index access and size operations.
Member Enumeration Documentation
◆ anonymous enum
| anonymous enum |
Constructor & Destructor Documentation
◆ ScaledIdentityMatrix() [1/2]
|
inline |
Default constructor.
◆ ScaledIdentityMatrix() [2/2]
|
inline |
Constructor initializing the whole matrix with a scalar.
Member Function Documentation
◆ beforeBegin() [1/2]
|
inline |
- Returns
- an iterator that is positioned before the first row of the matrix.
◆ beforeBegin() [2/2]
|
inline |
- Returns
- an iterator that is positioned before the first row of the matrix.
◆ beforeEnd() [1/2]
|
inline |
- Returns
- an iterator that is positioned before the end iterator of the rows, i.e. at the last row.
◆ beforeEnd() [2/2]
|
inline |
- Returns
- an iterator that is positioned before the end iterator of the rows. i.e. at the last row.
◆ begin() [1/2]
|
inline |
begin iterator
◆ begin() [2/2]
|
inline |
begin iterator
◆ determinant()
|
inline |
calculates the determinant of this matrix
◆ diagonal() [1/2]
|
inline |
Get reference to diagonal entry.
◆ diagonal() [2/2]
|
inline |
Get const reference to diagonal entry.
◆ end() [1/2]
|
inline |
end iterator
◆ end() [2/2]
|
inline |
end iterator
◆ exists()
|
inline |
return true when (i,j) is in pattern
◆ frobenius_norm()
|
inline |
frobenius norm: sqrt(sum over squared values of entries)
◆ frobenius_norm2()
|
inline |
square of frobenius norm, need for block recursion
◆ identical()
|
inline |
◆ infinity_norm()
|
inline |
infinity norm (row sum norm, how to generalize for blocks?)
◆ infinity_norm_real()
|
inline |
simplified infinity norm (uses Manhattan norm for complex values)
◆ invert()
|
inline |
Compute inverse.
◆ M()
|
inline |
number of blocks in column direction
◆ mmhv()
|
inline |
y -= A^H x
◆ mmtv()
|
inline |
y -= A^T x
◆ mmv()
|
inline |
y -= A x
◆ mtv()
|
inline |
y = A^T x
◆ mv()
|
inline |
y = A x
◆ N()
|
inline |
number of blocks in row direction
◆ operator!=()
|
inline |
incomparison operator
◆ operator*=()
|
inline |
vector space multiplication with scalar
◆ operator+=() [1/2]
|
inline |
addition to the diagonal
◆ operator+=() [2/2]
|
inline |
vector space addition
◆ operator-=() [1/2]
|
inline |
subtraction from the diagonal
◆ operator-=() [2/2]
|
inline |
vector space subtraction
◆ operator/=()
|
inline |
vector space division by scalar
◆ operator=()
|
inline |
◆ operator==()
|
inline |
comparison operator
◆ operator[]() [1/2]
|
inline |
Return reference object as row replacement.
◆ operator[]() [2/2]
|
inline |
Return const_reference object as row replacement.
◆ scalar() [1/2]
|
inline |
Get reference to the scalar diagonal value.
◆ scalar() [2/2]
|
inline |
Get const reference to the scalar diagonal value.
◆ solve()
|
inline |
Solve system A x = b.
◆ umhv()
|
inline |
y += A^H x
◆ umtv()
|
inline |
y += A^T x
◆ umv()
|
inline |
y += A x
◆ usmhv()
|
inline |
y += alpha A^H x
◆ usmtv()
|
inline |
y += alpha A^T x
◆ usmv()
|
inline |
y += alpha A x
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8