![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
symmetrictensor.hh
Go to the documentation of this file.
55 SymmetricTensor(const Dune::FieldVector<field_type,dim*(dim+1)/2> fvector): Dune::FieldVector<field_type,dim*(dim+1)/2>(fvector) {}
Matrix & mat
std::ostream & operator<<(std::ostream &s, const SymmetricTensor< dim, field_type > &E)
formatting tensor for standard output stream
Definition symmetrictensor.hh:194
typename FieldTraits< Type >::real_type real_t
typename FieldTraits< Type >::field_type field_t
size_type dim() const
virtual void operator()()=0
constexpr FieldVector() noexcept(std::is_nothrow_default_constructible_v< K >)
constexpr size_type dim() const
FieldTraits< value_type >::field_type field_type
void setDiag(const Dune::FieldVector< field_type, dim > &diagVector)
set diagonal according to vector entries and zero non-diagonal entries
Definition symmetrictensor.hh:166
void setDiag(field_type diagValue)
set diagonal to "constant" value and zero non-diagonal entries
Definition symmetrictensor.hh:157
field_type operator*(const SymmetricTensor< dim, field_type > &B) const
This is the contraction product of two tensors of 2nd stage .
Definition symmetrictensor.hh:60
void umv(const Dune::FieldVector< field_type, dim > &x, Dune::FieldVector< field_type, dim > &y) const
Matrix-Vector product.
Definition symmetrictensor.hh:83
void addToDiag(field_type x)
add constant value to the diagonal, leaving off-diagonal entries unaffected.
Definition symmetrictensor.hh:149
void mv(const Dune::FieldVector< field_type, dim > &x, Dune::FieldVector< field_type, dim > &y) const
Matrix-Vector product.
Definition symmetrictensor.hh:103
SymmetricTensor(field_type a)
Constructor for tensor with all entries being the same.
Definition symmetrictensor.hh:49
SymmetricTensor(const Dune::FieldVector< field_type, dim *(dim+1)/2 > fvector)
Construct from FieldVector of correct dimension.
Definition symmetrictensor.hh:55
SymmetricTensor(bool eye=false)
Default constructor.
Definition symmetrictensor.hh:39
Dune::FieldMatrix< field_type, dim, dim > matrix() const
Return the FieldMatrix representation of the symmetric tensor.
Definition symmetrictensor.hh:174
field_t< K > field_type
Definition symmetrictensor.hh:210
real_t< K > real_type
Definition symmetrictensor.hh:211
T endl(T... args)
