Dune Core Modules (2.6.0)
matrix.hh
Go to the documentation of this file.
588 };
This file implements a vector space as a tensor product of a given vector space. The number of compon...
ConstIterator class for sequential access.
Definition: matrix.hh:398
const window_type * operator->() const
arrow
Definition: matrix.hh:481
const window_type & operator*() const
dereferencing
Definition: matrix.hh:475
ConstIterator & operator++()
prefix increment
Definition: matrix.hh:435
ConstIterator(const B *data, size_type columns, size_type _i)
constructor from pointer
Definition: matrix.hh:408
ConstIterator & operator--()
prefix decrement
Definition: matrix.hh:443
ConstIterator(const Iterator &it)
constructor from non_const iterator
Definition: matrix.hh:414
bool operator!=(const ConstIterator &it) const
inequality
Definition: matrix.hh:457
ConstIterator()
constructor
Definition: matrix.hh:401
bool operator==(const ConstIterator &it) const
equality
Definition: matrix.hh:451
Iterator class for sequential access.
Definition: matrix.hh:257
Iterator & operator--()
prefix decrement
Definition: matrix.hh:302
bool operator!=(const Iterator &it) const
inequality
Definition: matrix.hh:316
Iterator & operator=(Iterator &&other)
Move assignment.
Definition: matrix.hh:276
Iterator & operator++()
prefix increment
Definition: matrix.hh:294
Iterator()
constructor, no arguments
Definition: matrix.hh:260
window_type & operator*() const
dereferencing
Definition: matrix.hh:334
bool operator==(const Iterator &it) const
equality
Definition: matrix.hh:310
Iterator & operator=(Iterator &other)
Copy assignment.
Definition: matrix.hh:285
Iterator(B *data, size_type columns, size_type _i)
constructor
Definition: matrix.hh:270
window_type * operator->() const
arrow
Definition: matrix.hh:340
A Vector of blocks with different blocksizes.
Definition: matrix.hh:38
BlockVector< B, A > block_type
Same as value_type, here for historical reasons.
Definition: matrix.hh:61
DenseMatrixBase & operator=(const DenseMatrixBase &a)
assignment
Definition: matrix.hh:176
void resize(size_type rows, size_type columns)
same effect as constructor with same argument
Definition: matrix.hh:147
DenseMatrixBase(size_type rows, size_type columns)
Definition: matrix.hh:89
reference operator[](size_type i)
random access to blocks
Definition: matrix.hh:235
BlockVector< B, A > value_type
Type of the elements of the outer vector, i.e., dynamic vectors of B.
Definition: matrix.hh:57
Iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: matrix.hh:385
size_type N() const
number of blocks in the vector (are of variable size here)
Definition: matrix.hh:533
ConstIterator end() const
end ConstIterator
Definition: matrix.hh:512
ConstIterator rend() const
end ConstIterator
Definition: matrix.hh:525
ConstIterator begin() const
begin ConstIterator
Definition: matrix.hh:506
A allocator_type
export the allocator type
Definition: matrix.hh:47
ConstIterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: matrix.hh:391
A::size_type size_type
The size type for the index access.
Definition: matrix.hh:50
~DenseMatrixBase()
free dynamic memory
Definition: matrix.hh:136
B::field_type field_type
export the type representing the field
Definition: matrix.hh:44
DenseMatrixBase(const DenseMatrixBase &a)
copy constructor, has copy semantics
Definition: matrix.hh:110
FieldTraits< ft >::real_type infinity_norm() const
infinity norm (row sum norm, how to generalize for blocks?)
Definition: matrix.hh:989
FieldTraits< ft >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: matrix.hh:1006
void usmhv(const field_type &alpha, const X &x, Y &y) const
y += alpha A^H x
Definition: matrix.hh:953
void usmv(const field_type &alpha, const X &x, Y &y) const
Definition: matrix.hh:850
MatrixImp::DenseMatrixBase< T, A > data_
Abuse DenseMatrixBase as an engine for a 2d array ISTL-style.
Definition: matrix.hh:1078
Matrix transpose() const
Return the transpose of the matrix.
Definition: matrix.hh:740
MatrixImp::DenseMatrixBase< T, A >::ConstIterator ConstRowIterator
Const iterator over the matrix rows.
Definition: matrix.hh:580
void setSize(size_type rows, size_type cols)
Change the matrix size.
Definition: matrix.hh:603
T::field_type field_type
Export the type representing the underlying field.
Definition: matrix.hh:559
Matrix & operator-=(const Matrix &b)
Subtract the entries of another matrix from this one.
Definition: matrix.hh:730
FieldTraits< field_type >::real_type frobenius_norm2() const
square of frobenius norm, need for block recursion
Definition: matrix.hh:977
row_type::iterator ColIterator
Iterator for the entries of each row.
Definition: matrix.hh:577
Matrix & operator=(const field_type &t)
Assignment from scalar.
Definition: matrix.hh:661
const row_type operator[](size_type row) const
The const index operator.
Definition: matrix.hh:679
ConstRowIterator end() const
Get const iterator to one beyond last row.
Definition: matrix.hh:641
friend Y operator*(const Matrix< T > &m, const X &vec)
Generic matrix-vector multiplication.
Definition: matrix.hh:765
Matrix< T > & operator*=(const field_type &scalar)
Multiplication with a scalar.
Definition: matrix.hh:700
row_type operator[](size_type row)
The index operator.
Definition: matrix.hh:668
Matrix & operator+=(const Matrix &b)
Add the entries of another matrix to this one.
Definition: matrix.hh:716
ConstRowIterator begin() const
Get const iterator to first row.
Definition: matrix.hh:635
row_type::const_iterator ConstColIterator
Const iterator for the entries of each row.
Definition: matrix.hh:583
@ blocklevel
The number of nesting levels the matrix contains.
Definition: matrix.hh:587
T block_type
Export the type representing the components.
Definition: matrix.hh:562
bool exists(size_type i, size_type j) const
return true if (i,j) is in pattern
Definition: matrix.hh:1063
Matrix< T > & operator/=(const field_type &scalar)
Division by a scalar.
Definition: matrix.hh:706
friend Matrix< T > operator*(const Matrix< T > &m1, const Matrix< T > &m2)
Generic matrix multiplication.
Definition: matrix.hh:750
MatrixImp::DenseMatrixBase< T, A >::window_type row_type
The type implementing a matrix row.
Definition: matrix.hh:568
FieldTraits< field_type >::real_type frobenius_norm() const
frobenius norm: sqrt(sum over squared values of entries)
Definition: matrix.hh:971
void usmtv(const field_type &alpha, const X &x, Y &y) const
y += alpha A^T x
Definition: matrix.hh:902
Matrix(size_type rows, size_type cols)
Create uninitialized matrix of size rows x cols.
Definition: matrix.hh:596
MatrixImp::DenseMatrixBase< T, A >::Iterator RowIterator
Iterator over the matrix rows.
Definition: matrix.hh:574
Type traits to determine the type of reals (when working with complex numbers)
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentionally unused function parameters with.
Definition: unused.hh:25
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 13, 23:29, 2024)