![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
symmetricmatrix.hh
Go to the documentation of this file.
int id()
static constexpr size_type N()
virtual void operator()()=0
constexpr K * data() noexcept
constexpr derived_type & axpy(const field_type &a, const DenseVector< Other > &x)
constexpr FieldTraits< value_type >::real_type two_norm2() const
constexpr size_type size() const
A class implementing a symmetric matrix with compile-time size.
Definition symmetricmatrix.hh:21
Dune::FieldVector< T, N *(N+1)/2 > Data
Definition symmetricmatrix.hh:28
T energyScalarProduct(const FieldVector< T, N > &v1, const FieldVector< T, N > &v2) const
Definition symmetricmatrix.hh:110
SymmetricMatrix< T, N > & operator*=(const T &s)
Definition symmetricmatrix.hh:71
T frobenius_norm2() const
Compute the Frobenius norm of the matrix.
Definition symmetricmatrix.hh:129
void axpy(const T &a, const SymmetricMatrix< T, N > &other)
Definition symmetricmatrix.hh:119
SymmetricMatrix(Iterator it)
Construct from raw memory.
Definition symmetricmatrix.hh:38
SymmetricMatrix< T, N > & operator=(const T &s)
Definition symmetricmatrix.hh:65
static constexpr SymmetricMatrix< T, N > identityMatrix()
Construct identityMatrix.
Definition symmetricmatrix.hh:45
SymmetricMatrix()
Default constructor, creates uninitialized matrix.
Definition symmetricmatrix.hh:32
T field_type
The type used for scalars.
Definition symmetricmatrix.hh:26
void setEntry(int i, int j, const T &entry)
Random write access to components.
Definition symmetricmatrix.hh:85
static constexpr Data traceMap()
return the trace map in vector representation the returned vector is such that <data,...
Definition symmetricmatrix.hh:58
static constexpr size_t dataSize()
Number of scalars needed for compressed vector storage of the symmetric matrix.
Definition symmetricmatrix.hh:152
T frobenius_norm() const
Compute the Frobenius norm of the matrix.
Definition symmetricmatrix.hh:135
T sqrt(T... args)
