Symmetric

This class represents a symmetric 3D rank two tensor (T_{ij} = T_{ji}). Internally, the tensor is stored as a length 6 Mandel vector.

class Symmetric : public neml::Tensor

Symmetric Mandel rank 2 tensor.

Public Functions

Symmetric()
Symmetric(const std::vector<double> v)
Symmetric(double *v)
Symmetric(const double *v)
Symmetric(const RankTwo &other)

I guess take them seriously and symmetrize it.

RankTwo to_full() const
Symmetric opposite() const
Symmetric operator-() const
Symmetric &operator+=(const Symmetric &other)
Symmetric &operator-=(const Symmetric &other)
Symmetric inverse() const
Symmetric transpose() const
double trace() const
Symmetric dev() const
double norm() const
Vector dot(const Vector &other) const
Symmetric dot(const Symmetric &other) const
RankTwo dot(const RankTwo &other) const
RankTwo dot(const Skew &other) const
double contract(const RankTwo &other) const
double contract(const Symmetric &other) const
double contract(const Skew &other) const
double &operator()(size_t i)
const double &operator()(size_t i) const

Public Static Functions

static inline Symmetric id()
static inline Symmetric zero()