libMesh
Classes | Functions
libMesh::TensorTools Namespace Reference

Classes

struct  DecrementRank
 
struct  DecrementRank< TensorValue< T > >
 
struct  DecrementRank< TypeNTensor< N, T > >
 
struct  DecrementRank< TypeTensor< T > >
 
struct  DecrementRank< TypeVector< T > >
 
struct  DecrementRank< VectorValue< T > >
 
struct  IncrementRank
 
struct  IncrementRank< TensorValue< T > >
 
struct  IncrementRank< TypeNTensor< N, T > >
 
struct  IncrementRank< TypeTensor< T > >
 
struct  IncrementRank< TypeVector< T > >
 
struct  IncrementRank< VectorValue< T > >
 
struct  MakeNumber
 
struct  MakeNumber< std::complex< T > >
 
struct  MakeNumber< TensorValue< T > >
 
struct  MakeNumber< TypeNTensor< N, T > >
 
struct  MakeNumber< TypeTensor< T > >
 
struct  MakeNumber< TypeVector< T > >
 
struct  MakeNumber< VectorValue< T > >
 
struct  MakeReal
 
struct  MakeReal< std::complex< T > >
 
struct  MakeReal< TensorValue< T > >
 
struct  MakeReal< TypeNTensor< N, T > >
 
struct  MakeReal< TypeTensor< T > >
 
struct  MakeReal< TypeVector< T > >
 
struct  MakeReal< VectorValue< T > >
 

Functions

template<typename T , typename T2 >
boostcopy::enable_if_c< ScalarTraits< T >::value &&ScalarTraits< T2 >::value, typename CompareTypes< T, T2 >::supertype >::type inner_product (const T &a, const T2 &b)
 
template<typename T , typename T2 >
CompareTypes< T, T2 >::supertype inner_product (const TypeVector< T > &a, const TypeVector< T2 > &b)
 
template<typename T , typename T2 >
CompareTypes< T, T2 >::supertype inner_product (const TypeTensor< T > &a, const TypeTensor< T2 > &b)
 
template<unsigned int N, typename T , typename T2 >
CompareTypes< T, T2 >::supertype inner_product (const TypeNTensor< N, T > &a, const TypeNTensor< N, T2 > &b)
 
template<typename T >
norm_sq (T a)
 
template<typename T >
norm_sq (std::complex< T > a)
 
template<typename T >
Real norm_sq (const TypeVector< T > &a)
 
template<typename T >
Real norm_sq (const VectorValue< T > &a)
 
Number curl_from_grad (const VectorValue< Number > &)
 
VectorValue< Numbercurl_from_grad (const TensorValue< Number > &grad)
 Computes the curl of a vector given the gradient of that vector. More...
 
TensorValue< Numbercurl_from_grad (const TypeNTensor< 3, Number > &grad)
 
Number div_from_grad (const VectorValue< Number > &grad)
 Dummy. Divergence of a scalar not defined, but is needed for ExactSolution to compile. More...
 
Number div_from_grad (const TensorValue< Number > &grad)
 Computes the divergence of a vector given the gradient of that vector. More...
 
VectorValue< Numberdiv_from_grad (const TypeNTensor< 3, Number > &grad)
 

Function Documentation

◆ curl_from_grad() [1/3]

Number libMesh::TensorTools::curl_from_grad ( const VectorValue< Number > &  )

◆ curl_from_grad() [2/3]

VectorValue<Number> libMesh::TensorTools::curl_from_grad ( const TensorValue< Number > &  grad)

Computes the curl of a vector given the gradient of that vector.

◆ curl_from_grad() [3/3]

TensorValue<Number> libMesh::TensorTools::curl_from_grad ( const TypeNTensor< 3, Number > &  grad)

Place holder needed for ExactSolution to compile. Will compute the curl of a tensor given the gradient of that tensor.

◆ div_from_grad() [1/3]

Number libMesh::TensorTools::div_from_grad ( const VectorValue< Number > &  grad)

Dummy. Divergence of a scalar not defined, but is needed for ExactSolution to compile.

◆ div_from_grad() [2/3]

Number libMesh::TensorTools::div_from_grad ( const TensorValue< Number > &  grad)

Computes the divergence of a vector given the gradient of that vector.

◆ div_from_grad() [3/3]

VectorValue<Number> libMesh::TensorTools::div_from_grad ( const TypeNTensor< 3, Number > &  grad)

Place holder needed for ExactSolution to compile. Will compute the divergence of a tensor given the gradient of that tensor.

◆ inner_product() [1/4]

template<typename T , typename T2 >
boostcopy::enable_if_c<ScalarTraits<T>::value && ScalarTraits<T2>::value, typename CompareTypes<T, T2>::supertype>::type libMesh::TensorTools::inner_product ( const T &  a,
const T2 &  b 
)

Definition at line 47 of file tensor_tools.h.

48 { return a * b; }

◆ inner_product() [2/4]

template<typename T , typename T2 >
CompareTypes<T, T2>::supertype libMesh::TensorTools::inner_product ( const TypeVector< T > &  a,
const TypeVector< T2 > &  b 
)

Definition at line 53 of file tensor_tools.h.

54 { return a * b; }

◆ inner_product() [3/4]

template<typename T , typename T2 >
CompareTypes<T, T2>::supertype libMesh::TensorTools::inner_product ( const TypeTensor< T > &  a,
const TypeTensor< T2 > &  b 
)

Definition at line 59 of file tensor_tools.h.

References libMesh::TypeTensor< T >::contract().

60 { return a.contract(b); }

◆ inner_product() [4/4]

template<unsigned int N, typename T , typename T2 >
CompareTypes<T, T2>::supertype libMesh::TensorTools::inner_product ( const TypeNTensor< N, T > &  a,
const TypeNTensor< N, T2 > &  b 
)

Definition at line 65 of file tensor_tools.h.

References libMesh::TypeNTensor< N, T >::contract().

66 { return a.contract(b); }

◆ norm_sq() [1/4]

template<typename T >
T libMesh::TensorTools::norm_sq ( a)

◆ norm_sq() [2/4]

template<typename T >
T libMesh::TensorTools::norm_sq ( std::complex< T >  a)

Definition at line 74 of file tensor_tools.h.

74 { return std::norm(a); }

◆ norm_sq() [3/4]

template<typename T >
Real libMesh::TensorTools::norm_sq ( const TypeVector< T > &  a)

Definition at line 78 of file tensor_tools.h.

References libMesh::TypeVector< T >::norm_sq().

79 {return a.norm_sq();}

◆ norm_sq() [4/4]

template<typename T >
Real libMesh::TensorTools::norm_sq ( const VectorValue< T > &  a)

Definition at line 83 of file tensor_tools.h.

References libMesh::TypeVector< T >::norm_sq().

84 {return a.norm_sq();}