NuTo
Numerics Tool
EngineeringStrain.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <eigen3/Eigen/Core>
5 
6 namespace NuTo
7 {
32 template <int TDim>
33 class EngineeringStrain : public Eigen::Matrix<double, Voigt::Dim(TDim), 1>
34 {
36 
37 public:
38  EngineeringStrain() = default;
39 
41  template <typename OtherDerived>
42  EngineeringStrain(const Eigen::MatrixBase<OtherDerived>& other)
43  : Parent(other)
44  {
45  }
46 
48  template <typename OtherDerived>
49  EngineeringStrain(Eigen::MatrixBase<OtherDerived>&& other)
50  : Parent(other)
51  {
52  }
53 
55  template <typename OtherDerived>
56  EngineeringStrain& operator=(const Eigen::MatrixBase<OtherDerived>& other)
57  {
58  this->Parent::operator=(other);
59  return *this;
60  }
61 
63  template <typename OtherDerived>
64  EngineeringStrain& operator=(Eigen::MatrixBase<OtherDerived>&& other)
65  {
66  this->Parent::operator=(other);
67  return *this;
68  }
69 };
70 } /* namespace NuTo */
Engineering strain.
Definition: EngineeringStrain.h:33
EngineeringStrain(const Eigen::MatrixBase< OtherDerived > &other)
This constructor allows you to construct EngineeringStrain from Eigen expressions.
Definition: EngineeringStrain.h:42
EngineeringStrain & operator=(const Eigen::MatrixBase< OtherDerived > &other)
This method allows you to assign Eigen expressions to EngineeringStrain.
Definition: EngineeringStrain.h:56
Definition: Exception.h:6
Definition: SerializeStreamOut.h:9
EngineeringStrain & operator=(Eigen::MatrixBase< OtherDerived > &&other)
This method allows you to assign Eigen expressions to EngineeringStrain.
Definition: EngineeringStrain.h:64
EngineeringStrain(Eigen::MatrixBase< OtherDerived > &&other)
This constructor allows you to construct EngineeringStrain from Eigen expressions.
Definition: EngineeringStrain.h:49