|
dune-istl 2.9.0
|
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 More... | |
| typedef K | block_type |
| export the type representing the components More... | |
| typedef std::size_t | size_type |
| The type used for the index access and size operations. More... | |
| typedef DiagonalRowVector< K, n > | row_type |
| Each row is implemented by a field vector. More... | |
| 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. More... | |
| typedef Iterator | iterator |
| typedef for stl compliant access More... | |
| typedef Iterator | RowIterator |
| rename the iterators for easier access More... | |
| typedef row_type::Iterator | ColIterator |
| rename the iterators for easier access More... | |
| typedef ContainerWrapperIterator< const WrapperType, const_reference, const_reference > | ConstIterator |
| Iterator class for sequential access. More... | |
| typedef ConstIterator | const_iterator |
| typedef for stl compliant access More... | |
| typedef ConstIterator | ConstRowIterator |
| rename the iterators for easier access More... | |
| typedef const_row_type::ConstIterator | ConstColIterator |
| rename the iterators for easier access More... | |
Public Member Functions | |
| ScaledIdentityMatrix () | |
| Default constructor. More... | |
| ScaledIdentityMatrix (const K &k) | |
| Constructor initializing the whole matrix with a scalar. More... | |
| ScaledIdentityMatrix & | operator= (const K &k) |
| bool | identical (const ScaledIdentityMatrix< K, n > &other) const |
| Iterator | begin () |
| begin iterator More... | |
| Iterator | end () |
| end iterator More... | |
| Iterator | beforeEnd () |
| Iterator | beforeBegin () |
| ConstIterator | begin () const |
| begin iterator More... | |
| ConstIterator | end () const |
| end iterator More... | |
| ConstIterator | beforeEnd () const |
| ConstIterator | beforeBegin () const |
| ScaledIdentityMatrix & | operator+= (const ScaledIdentityMatrix &y) |
| vector space addition More... | |
| ScaledIdentityMatrix & | operator-= (const ScaledIdentityMatrix &y) |
| vector space subtraction More... | |
| ScaledIdentityMatrix & | operator+= (const K &k) |
| addition to the diagonal More... | |
| ScaledIdentityMatrix & | operator-= (const K &k) |
| subtraction from the diagonal More... | |
| ScaledIdentityMatrix & | operator*= (const K &k) |
| vector space multiplication with scalar More... | |
| ScaledIdentityMatrix & | operator/= (const K &k) |
| vector space division by scalar More... | |
| bool | operator== (const ScaledIdentityMatrix &other) const |
| comparison operator More... | |
| bool | operator!= (const ScaledIdentityMatrix &other) const |
| incomparison operator More... | |
| template<class X , class Y > | |
| void | mv (const X &x, Y &y) const |
| y = A x More... | |
| template<class X , class Y > | |
| void | mtv (const X &x, Y &y) const |
| y = A^T x More... | |
| template<class X , class Y > | |
| void | umv (const X &x, Y &y) const |
| y += A x More... | |
| template<class X , class Y > | |
| void | umtv (const X &x, Y &y) const |
| y += A^T x More... | |
| template<class X , class Y > | |
| void | umhv (const X &x, Y &y) const |
| y += A^H x More... | |
| template<class X , class Y > | |
| void | mmv (const X &x, Y &y) const |
| y -= A x More... | |
| template<class X , class Y > | |
| void | mmtv (const X &x, Y &y) const |
| y -= A^T x More... | |
| template<class X , class Y > | |
| void | mmhv (const X &x, Y &y) const |
| y -= A^H x More... | |
| template<class X , class Y > | |
| void | usmv (const K &alpha, const X &x, Y &y) const |
| y += alpha A x More... | |
| template<class X , class Y > | |
| void | usmtv (const K &alpha, const X &x, Y &y) const |
| y += alpha A^T x More... | |
| template<class X , class Y > | |
| void | usmhv (const K &alpha, const X &x, Y &y) const |
| y += alpha A^H x More... | |
| FieldTraits< field_type >::real_type | frobenius_norm () const |
| frobenius norm: sqrt(sum over squared values of entries) More... | |
| FieldTraits< field_type >::real_type | frobenius_norm2 () const |
| square of frobenius norm, need for block recursion More... | |
| FieldTraits< field_type >::real_type | infinity_norm () const |
| infinity norm (row sum norm, how to generalize for blocks?) More... | |
| FieldTraits< field_type >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values) More... | |
| template<class V > | |
| void | solve (V &x, const V &b) const |
| Solve system A x = b. More... | |
| void | invert () |
| Compute inverse. More... | |
| K | determinant () const |
| calculates the determinant of this matrix More... | |
| size_type | N () const |
| number of blocks in row direction More... | |
| size_type | M () const |
| number of blocks in column direction More... | |
| bool | exists (size_type i, size_type j) const |
| return true when (i,j) is in pattern More... | |
| reference | operator[] (size_type i) |
| Return reference object as row replacement. More... | |
| const_reference | operator[] (size_type i) const |
| Return const_reference object as row replacement. More... | |
| const K & | diagonal (size_type) const |
| Get const reference to diagonal entry. More... | |
| K & | diagonal (size_type) |
| Get reference to diagonal entry. More... | |
| const K & | scalar () const |
| Get const reference to the scalar diagonal value. More... | |
| K & | scalar () |
| Get reference to the scalar diagonal value. More... | |
Static Public Attributes | |
| static constexpr std::size_t | blocklevel = 1 |
| We are at the leaf of the block recursion. More... | |
A multiple of the identity matrix of static size.
| typedef K Dune::ScaledIdentityMatrix< K, n >::block_type |
export the type representing the components
| typedef row_type::Iterator Dune::ScaledIdentityMatrix< K, n >::ColIterator |
rename the iterators for easier access
| typedef ConstIterator Dune::ScaledIdentityMatrix< K, n >::const_iterator |
typedef for stl compliant access
| typedef const_row_type Dune::ScaledIdentityMatrix< K, n >::const_reference |
| typedef DiagonalRowVectorConst<K,n> Dune::ScaledIdentityMatrix< K, n >::const_row_type |
| typedef const_row_type::ConstIterator Dune::ScaledIdentityMatrix< K, n >::ConstColIterator |
rename the iterators for easier access
| typedef ContainerWrapperIterator<const WrapperType, const_reference, const_reference> Dune::ScaledIdentityMatrix< K, n >::ConstIterator |
Iterator class for sequential access.
| typedef ConstIterator Dune::ScaledIdentityMatrix< K, n >::ConstRowIterator |
rename the iterators for easier access
| typedef K Dune::ScaledIdentityMatrix< K, n >::field_type |
export the type representing the field
| typedef ContainerWrapperIterator<const WrapperType, reference, reference> Dune::ScaledIdentityMatrix< K, n >::Iterator |
Iterator class for sequential access.
| typedef Iterator Dune::ScaledIdentityMatrix< K, n >::iterator |
typedef for stl compliant access
| typedef row_type Dune::ScaledIdentityMatrix< K, n >::reference |
| typedef DiagonalRowVector<K,n> Dune::ScaledIdentityMatrix< K, n >::row_type |
Each row is implemented by a field vector.
| typedef Iterator Dune::ScaledIdentityMatrix< K, n >::RowIterator |
rename the iterators for easier access
| typedef std::size_t Dune::ScaledIdentityMatrix< K, n >::size_type |
The type used for the index access and size operations.
| anonymous enum |
|
inline |
Default constructor.
|
inline |
Constructor initializing the whole matrix with a scalar.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
begin iterator
|
inline |
begin iterator
|
inline |
calculates the determinant of this matrix
|
inline |
Get reference to diagonal entry.
|
inline |
Get const reference to diagonal entry.
|
inline |
end iterator
|
inline |
end iterator
|
inline |
return true when (i,j) is in pattern
|
inline |
frobenius norm: sqrt(sum over squared values of entries)
|
inline |
square of frobenius norm, need for block recursion
|
inline |
|
inline |
infinity norm (row sum norm, how to generalize for blocks?)
|
inline |
simplified infinity norm (uses Manhattan norm for complex values)
|
inline |
Compute inverse.
|
inline |
number of blocks in column direction
|
inline |
y -= A^H x
|
inline |
y -= A^T x
|
inline |
y -= A x
|
inline |
y = A^T x
|
inline |
y = A x
|
inline |
number of blocks in row direction
|
inline |
incomparison operator
|
inline |
vector space multiplication with scalar
|
inline |
addition to the diagonal
|
inline |
vector space addition
|
inline |
subtraction from the diagonal
|
inline |
vector space subtraction
|
inline |
vector space division by scalar
|
inline |
|
inline |
comparison operator
|
inline |
Return reference object as row replacement.
|
inline |
Return const_reference object as row replacement.
|
inline |
Get reference to the scalar diagonal value.
|
inline |
Get const reference to the scalar diagonal value.
|
inline |
Solve system A x = b.
|
inline |
y += A^H x
|
inline |
y += A^T x
|
inline |
y += A x
|
inline |
y += alpha A^H x
|
inline |
y += alpha A^T x
|
inline |
y += alpha A x
|
staticconstexpr |
We are at the leaf of the block recursion.