37#ifndef AIMS_MATH_TENSOR_H
38#define AIMS_MATH_TENSOR_H
80 float diffusion(
const Point3df& dir )
const;
82 float meanDiffusivity()
const;
84 float dot(
const Tensor& other )
const;
87 int operator == (
const Tensor& thing1,
const Tensor& thing2);
90 std::ostream& operator << (std::ostream& os,
const Tensor& thing);
127 return (
coef().item(0) +
coef().item(3) +
coef().item(5) ) / 3.0;
155 os <<
"{trieder=" << thing.
trieder()
157 <<
",coef=" << thing.
coef()
158 <<
",trace=" << thing.
trace();
const T & item(int d) const
const float & trace() const
AimsVector< float, 6 > _coef
AimsVector< float, 6 > & coef()
float diffusion(const Point3df &dir) const
Tensor(const Tensor &other)
Tensor(const Trieder &trieder, const Point3df &eigenvalue)
float dot(const Tensor &other) const
const Point3df & eigenvalue() const
Tensor(const AimsVector< float, 6 > &coef)
const AimsVector< float, 6 > & coef() const
const Trieder & trieder() const
float meanDiffusivity() const
AIMSDATA_API std::ostream & operator<<(std::ostream &os, const Tensor &thing)
AIMSDATA_API int operator==(const Tensor &thing1, const Tensor &thing2)
AIMSDATA_API float norm(const Tensor &thing)
AimsVector< float, 3 > Point3df