RankTwo

This class represents a general 3D rank two tensor stored as a length 9 flat array.

class RankTwo : public neml::Tensor

Full Rank 2 tensor.

Public Functions

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

Helper.

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

Public Static Functions

static inline RankTwo id()