Dune Core Modules (2.3.1)
diagonalmatrix.hh
Go to the documentation of this file.
69 };
85 };
161 typedef ContainerWrapperIterator<const WrapperType, const_reference, const_reference> ConstIterator;
672 };
678 };
959 class ContainerWrapperIterator : public BidirectionalIteratorFacade<ContainerWrapperIterator<CW,T,R>,T, R, int>
963 friend class ContainerWrapperIterator<CW, typename mutable_reference<T>::type, typename mutable_reference<R>::type>;
964 friend class ContainerWrapperIterator<CW, typename const_reference<T>::type, typename const_reference<R>::type>;
966 typedef ContainerWrapperIterator<CW, typename mutable_reference<T>::type, typename mutable_reference<R>::type> MyType;
967 typedef ContainerWrapperIterator<CW, typename const_reference<T>::type, typename const_reference<R>::type> MyConstType;
Facade class for stl conformant bidirectional iterators.
Definition: iteratorfacades.hh:273
Iterator class for sparse vector-like containers.
Definition: diagonalmatrix.hh:960
FieldTraits< value_type >::real_type two_norm2() const
square of two norm (sum over squared values of entries), need for block recursion
Definition: densevector.hh:530
FieldTraits< value_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: densevector.hh:521
FieldTraits< value_type >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: densevector.hh:553
FieldTraits< value_type >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: densevector.hh:539
Implements a matrix constructed from a given type representing a field and a compile-time given numbe...
A few common exception classes.
Implements a matrix constructed from a given type representing a field and compile-time given number ...
Implements a vector constructed from a given type representing a field and a compile-time given size.
Implements a generic iterator class for writing stl conformant iterators.
void mmhv(const X &x, Y &y) const
y -= A^H x
Definition: diagonalmatrix.hh:339
DiagonalMatrix & operator*=(const K &k)
vector space multiplication with scalar
Definition: diagonalmatrix.hh:228
std::size_t size_type
The type used for the index access and size operations.
Definition: diagonalmatrix.hh:63
size_type dim() const
dimension of the vector space
Definition: diagonalmatrix.hh:759
ConstIterator ConstRowIterator
rename the iterators for easier access
Definition: diagonalmatrix.hh:165
FieldVector< K, n > & diagonal()
Get reference to diagonal vector.
Definition: diagonalmatrix.hh:513
DiagonalMatrix()
Default constructor.
Definition: diagonalmatrix.hh:97
Iterator iterator
typedef for stl compliant access
Definition: diagonalmatrix.hh:850
void usmhv(const K &alpha, const X &x, Y &y) const
y += alpha A^H x
Definition: diagonalmatrix.hh:375
void usmv(const K &alpha, const X &x, Y &y) const
y += alpha A x
Definition: diagonalmatrix.hh:351
K field_type
export the type representing the field
Definition: diagonalmatrix.hh:660
ConstIterator beforeEnd() const
Definition: diagonalmatrix.hh:732
const_row_type::ConstIterator ConstColIterator
rename the iterators for easier access
Definition: diagonalmatrix.hh:167
bool exists(size_type i, size_type j) const
return true when (i,j) is in pattern
Definition: diagonalmatrix.hh:460
ContainerWrapperIterator< const WrapperType, const_reference, const_reference > ConstIterator
Iterator class for sequential access.
Definition: diagonalmatrix.hh:161
DiagonalRowVector(K *p, int col)
Constructor making vector with identical coordinates.
Definition: diagonalmatrix.hh:824
K & diagonal(size_type i)
Get reference to diagonal entry.
Definition: diagonalmatrix.hh:501
void solve(V &x, const V &b) const
Solve system A x = b.
Definition: diagonalmatrix.hh:417
size_type M() const
number of blocks in column direction
Definition: diagonalmatrix.hh:450
const_reference operator[](size_type i) const
Return const_reference object as row replacement.
Definition: diagonalmatrix.hh:489
Iterator iterator
typedef for stl compliant access
Definition: diagonalmatrix.hh:127
ConstIterator begin() const
begin ConstIterator
Definition: diagonalmatrix.hh:719
ConstIterator const_iterator
typedef for stl compliant access
Definition: diagonalmatrix.hh:881
DiagonalMatrix & operator-=(const DiagonalMatrix &y)
vector space subtraction
Definition: diagonalmatrix.hh:207
DiagonalRowVectorConst(K *p, int col)
Constructor making vector with identical coordinates.
Definition: diagonalmatrix.hh:687
void mmtv(const X &x, Y &y) const
y -= A^T x
Definition: diagonalmatrix.hh:327
DiagonalMatrix(const K &k)
Constructor initializing the whole matrix with a scalar.
Definition: diagonalmatrix.hh:100
ContainerWrapperIterator< DiagonalRowVector< K, n >, K, K & > Iterator
Iterator class for sequential access.
Definition: diagonalmatrix.hh:848
void umtv(const X &x, Y &y) const
y += A^T x
Definition: diagonalmatrix.hh:291
ConstIterator const_iterator
typedef for stl compliant access
Definition: diagonalmatrix.hh:716
double infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: diagonalmatrix.hh:406
ContainerWrapperIterator< const WrapperType, reference, reference > Iterator
Iterator class for sequential access.
Definition: diagonalmatrix.hh:125
double frobenius_norm() const
frobenius norm: sqrt(sum over squared values of entries)
Definition: diagonalmatrix.hh:388
size_type rowIndex() const
index of this row in surrounding matrix
Definition: diagonalmatrix.hh:765
bool operator!=(const DiagonalMatrix &other) const
incomparison operator
Definition: diagonalmatrix.hh:250
ConstIterator begin() const
begin iterator
Definition: diagonalmatrix.hh:170
DiagonalMatrix & operator/=(const K &k)
vector space division by scalar
Definition: diagonalmatrix.hh:235
ConstIterator const_iterator
typedef for stl compliant access
Definition: diagonalmatrix.hh:163
bool identical(const DiagonalMatrix< K, n > &other) const
Check if matrix is the same object as the other matrix.
Definition: diagonalmatrix.hh:118
void usmtv(const K &alpha, const X &x, Y &y) const
y += alpha A^T x
Definition: diagonalmatrix.hh:363
DiagonalRowVector()
Constructor making uninitialized vector.
Definition: diagonalmatrix.hh:820
double frobenius_norm2() const
square of frobenius norm, need for block recursion
Definition: diagonalmatrix.hh:394
ContainerWrapperIterator< DiagonalRowVectorConst< K, n >, const K, const K & > ConstIterator
ConstIterator class for sequential access.
Definition: diagonalmatrix.hh:879
const FieldVector< K, n > & diagonal() const
Get const reference to diagonal vector.
Definition: diagonalmatrix.hh:507
const K & diagonal(size_type i) const
Get const reference to diagonal entry.
Definition: diagonalmatrix.hh:495
size_type N() const
number of blocks in the vector (are of size 1 here)
Definition: diagonalmatrix.hh:753
row_type::Iterator ColIterator
rename the iterators for easier access
Definition: diagonalmatrix.hh:131
K field_type
export the type representing the field
Definition: diagonalmatrix.hh:811
reference operator[](size_type i)
Return reference object as row replacement.
Definition: diagonalmatrix.hh:483
size_type N() const
number of blocks in row direction
Definition: diagonalmatrix.hh:444
DiagonalMatrix(const FieldVector< K, n > &diag)
Constructor initializing the diagonal with a vector.
Definition: diagonalmatrix.hh:105
std::size_t size_type
The type used for the index access and size operation.
Definition: diagonalmatrix.hh:817
double infinity_norm() const
infinity norm (row sum norm, how to generalize for blocks?)
Definition: diagonalmatrix.hh:400
DiagonalMatrix & operator+=(const DiagonalMatrix &y)
vector space addition
Definition: diagonalmatrix.hh:200
K block_type
export the type representing the components
Definition: diagonalmatrix.hh:60
void umhv(const X &x, Y &y) const
y += A^H x
Definition: diagonalmatrix.hh:303
ConstIterator end() const
end ConstIterator
Definition: diagonalmatrix.hh:725
std::size_t size_type
The type used for the index access and size operation.
Definition: diagonalmatrix.hh:666
DiagonalMatrix & operator=(const K &k)
Assignment from a scalar.
Definition: diagonalmatrix.hh:111
DiagonalRowVectorConst()
Constructor making uninitialized vector.
Definition: diagonalmatrix.hh:681
friend std::ostream & operator<<(std::ostream &s, const DiagonalMatrix< K, n > &a)
Sends the matrix to an output stream.
Definition: diagonalmatrix.hh:472
K value_type
export the type representing the field
Definition: diagonalmatrix.hh:56
K block_type
export the type representing the components
Definition: diagonalmatrix.hh:663
K determinant() const
calculates the determinant of this matrix
Definition: diagonalmatrix.hh:431
ConstIterator beforeBegin() const
Definition: diagonalmatrix.hh:739
ContainerWrapperIterator< DiagonalRowVectorConst< K, n >, const K, const K & > ConstIterator
ConstIterator class for sequential access.
Definition: diagonalmatrix.hh:714
bool operator==(const DiagonalMatrix &other) const
comparison operator
Definition: diagonalmatrix.hh:244
DiagonalRowVector< K, n > row_type
Each row is implemented by a field vector.
Definition: diagonalmatrix.hh:72
Iterator RowIterator
rename the iterators for easier access
Definition: diagonalmatrix.hh:129
K block_type
export the type representing the components
Definition: diagonalmatrix.hh:814
const K & diagonal() const
the diagonal value
Definition: diagonalmatrix.hh:771
@ blocklevel
The number of block levels we contain. This is 1.
Definition: diagonalmatrix.hh:68
EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for equality.
Definition: iteratorfacades.hh:231
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition: math.hh:103
get the 'mutable' version of a reference to a const object
Definition: genericiterator.hh:115
Traits for type conversions and type information.
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentional unused function parameters with.
Definition: unused.hh:18
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)