ug4
math_tensor_functions.h File Reference

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<std::size_t TDim>
void ug::InvertTensor4 (MathTensor4< TDim, TDim, TDim, TDim > &tens4_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4)
 
template<std::size_t TDim, std::size_t TDimSQ>
void ug::MatToTens4 (MathTensor4< TDim, TDim, TDim, TDim > &tens4, const DenseMatrixInverse< FixedArray2< number, TDimSQ, TDimSQ > > &mat)
 
template<std::size_t TDim>
void ug::SolveTensorMatrixEquation (MathMatrix< TDim, TDim > &X, const MathTensor4< TDim, TDim, TDim, TDim > &A, const MathMatrix< TDim, TDim > &rhs)
 
template<std::size_t TDim, std::size_t TDimSQ>
void ug::Tens2ToVec (DenseVector< FixedArray1< number, TDimSQ > > &vec, const MathMatrix< TDim, TDim > &tens2)
 transformation of a tensor of rank 2 (R^dim x R^dim) into a vector (R^(dim^2)) More...
 
template<std::size_t TDim>
void ug::Tens4Add (MathTensor4< TDim, TDim, TDim, TDim > &tens4_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4a, const MathTensor4< TDim, TDim, TDim, TDim > &tens4b)
 
template<std::size_t TDim>
void ug::Tens4Contract (MathMatrix< TDim, TDim > &tens2_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4, const MathMatrix< TDim, TDim > &tens2)
 
template<std::size_t TDim>
void ug::Tens4Contract (MathTensor4< TDim, TDim, TDim, TDim > &tens4_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4a, const MathTensor4< TDim, TDim, TDim, TDim > &tens4b)
 
template<std::size_t TDim>
void ug::Tens4Contract (MathTensor4< TDim, TDim, TDim, TDim > &tens4_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4a, const MathTensor4< TDim, TDim, TDim, TDim > &tens4b, const MathTensor4< TDim, TDim, TDim, TDim > &tens4c)
 
template<std::size_t TDim>
void ug::Tens4Identity (MathTensor4< TDim, TDim, TDim, TDim > &Ident)
 this function computes the 4th order identity tensor More...
 
template<std::size_t TDim>
void ug::Tens4IdentitySym (MathTensor4< TDim, TDim, TDim, TDim > &Ident)
 this function computes the symmetric 4th order identity tensor More...
 
template<std::size_t TDim>
void ug::Tens4Subtract (MathTensor4< TDim, TDim, TDim, TDim > &tens4_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4a, const MathTensor4< TDim, TDim, TDim, TDim > &tens4b)
 
template<std::size_t TDim, std::size_t TDimSQ>
void ug::Tens4ToMat (DenseMatrix< FixedArray2< number, TDimSQ, TDimSQ > > &mat, const MathTensor4< TDim, TDim, TDim, TDim > &tens4)
 
template<std::size_t TDim>
void ug::Tens4Zero (MathTensor4< TDim, TDim, TDim, TDim > &tensOut)
 
template<std::size_t TDim>
void ug::TransTens4 (MathTensor4< TDim, TDim, TDim, TDim > &tens4_out, const MathTensor4< TDim, TDim, TDim, TDim > &tens4)
 
template<std::size_t TDim, std::size_t TDimSQ>
void ug::VecToTens2 (MathMatrix< TDim, TDim > &tens2, const DenseVector< FixedArray1< number, TDimSQ > > &vec)
 transformation of a vector (R^(dim^2)) into a tensor of rank 2 (R^dim x R^dim) More...