|
| TypeNTensor () |
|
| TypeNTensor (const T &) |
|
| TypeNTensor (const TypeVector< T > &) |
|
| TypeNTensor (const TypeTensor< T > &) |
|
| TypeNTensor (const TypeNTensor< N, T > &) |
|
TypeNTensor & | operator= (const TypeNTensor< N, T > &) |
|
| operator TypeVector< T > () const |
|
| operator VectorValue< T > () const |
|
| operator TypeTensor< T > () const |
|
| operator TensorValue< T > () const |
|
| ~TypeNTensor ()=default |
|
const TypeNTensor< N-1, T > | slice (const unsigned int) const |
|
TypeNTensor< N-1, T > | slice (const unsigned int) |
|
template<typename Scalar > |
boostcopy::enable_if_c
< ScalarTraits< Scalar >
::value, TypeNTensor & >::type | operator= (const Scalar &libmesh_dbg_var(p)) |
|
template<typename T2 > |
TypeNTensor< N, typename
CompareTypes< T, T2 >
::supertype > | operator+ (const TypeNTensor< N, T2 > &) const |
|
template<typename T2 > |
const TypeNTensor< N, T > & | operator+= (const TypeNTensor< N, T2 > &) |
|
template<typename T2 > |
TypeNTensor< N, typename
CompareTypes< T, T2 >
::supertype > | operator- (const TypeNTensor< N, T2 > &) const |
|
template<typename T2 > |
const TypeNTensor< N, T > & | operator-= (const TypeNTensor< N, T2 > &) |
|
TypeNTensor< N, T > | operator- () const |
|
template<typename Scalar > |
boostcopy::enable_if_c
< ScalarTraits< Scalar >
::value, TypeNTensor< N,
typename CompareTypes< T,
Scalar >::supertype > >::type | operator* (const Scalar) const |
|
template<typename Scalar > |
const TypeNTensor< N, T > & | operator*= (const Scalar) |
|
template<typename Scalar > |
boostcopy::enable_if_c
< ScalarTraits< Scalar >
::value, TypeNTensor< N,
typename CompareTypes< T,
Scalar >::supertype > >::type | operator/ (const Scalar) const |
|
const TypeNTensor< N, T > & | operator/= (const T) |
|
template<typename T2 > |
CompareTypes< T, T2 >::supertype | contract (const TypeNTensor< N, T2 > &) const |
| 将两个张量相乘,返回一个标量,即 张量可能包含不同的数值类型。 也被称为张量的“双内积”或“双点积”。 更多...
|
|
auto | norm_sq () const -> decltype(std::norm(T())) |
|
void | zero () |
| 将张量的所有分量设置为0。 更多...
|
|
bool | operator== (const TypeNTensor< N, T > &) const |
|
bool | operator< (const TypeNTensor< N, T > &) const |
|
bool | operator> (const TypeNTensor< N, T > &) const |
|
void | print (std::ostream &) const |
| 将该张量格式化打印到流中,默认为libMesh::out。 更多...
|
|
template<typename T2 > |
void | add_scaled (const TypeNTensor< N, T2 > &, const T &) |
| 将一个经过缩放的类型N张量添加到该类型N张量中,而不创建临时张量。 更多...
|
|
template<unsigned int N, typename T>
class libMesh::TypeNTensor< N, T >
该类最终将定义一个在类型为T的LIBMESH_DIM维空间中的N阶张量。
目前,它定义了一个占位符,允许在矢量值元素和二阶导数的情况下编译(但不提供正确的结果), 以便实现与张量阶数无关的代码。
- 作者
- Roy Stogner
- 日期
- 2012
在文件 tensor_tools.h 第 38 行定义.