5 #ifndef _STRESSTENSOR_H_
6 #define _STRESSTENSOR_H_
125 for(
int i=0;i<6;i++) _data[i] = NumTypeTraits<T>::getZero();
135 return mag2() < tolerance*tolerance;
StressTensor & operator-=(const T s)
StressTensor & operator*=(const StressTensor &o)
static void setMax(StressTensor &x, const StressTensor &y)
static void normalize(StressTensor &x, const StressTensor &y)
StressTensor & operator-=(const StressTensor &o)
StressTensor< T > operator+(const StressTensor< T > &a, const StressTensor< T > &b)
static void safeDivide(StressTensor &x, const StressTensor &y)
StressTensor & operator/=(const StressTensor &o)
StressTensor & operator/=(const T s)
StressTensor & operator=(const StressTensor &o)
NumTypeTraits< T >::T_Scalar T_Scalar
StressTensor< T > operator/(const StressTensor< T > &a, const T s)
static StressTensor getNegativeUnity()
NumTypeTraits< T >::T_BuiltIn T_BuiltIn
const T & operator[](int n) const
static void reduceSum(T_Scalar &sum, const This_T &x)
StressTensor & operator+=(const T s)
static double doubleMeasure(const StressTensor &x)
StressTensor< T > operator-(const StressTensor< T > &a, const StressTensor< T > &b)
static string getTypeName()
ostream & operator<<(ostream &os, const StressTensor< T > &v)
StressTensor< T > operator*(const StressTensor< T > &a, const StressTensor< T > &b)
StressTensor & operator+=(const StressTensor &o)
static void getShape(int *shp)
StressTensor & operator*=(const T s)
static void accumulateDotProduct(StressTensor &sum, const StressTensor &v0, const StressTensor &v1)
static void accumulateOneNorm(StressTensor &sum, const StressTensor &v)
static StressTensor getUnity()
static StressTensor getZero()
bool operator<(const double tolerance) const
static int getDimension()
StressTensor & operator=(const T &o)