模板类 tensor_expression<T,E>
必须是所有类的公共基类。 没有定义张量表达式概念。
定义于头文件 tensor/expression.hpp 中。
无。 不是张量表达式!
无。
ublas_expression<E>
.
参数 | 描述 |
---|---|
T |
张量的类型。 |
E |
张量表达式的类型。 |
成员类型 | 描述 |
---|---|
expression_type |
派生表达式的类型,即 E 。 |
type_category |
用于分类的标签,即 tensor_tag 。 |
tensor_type |
引用类型,即 T 。 |
成员 | 描述 |
---|---|
const expression_type &operator()() const |
返回对派生表达式的 const 引用。 |
模板类 binary_tensor_expression<T,EL,ER,OP>
包含对左侧和右侧表达式的常量引用,这些表达式可以通过使用访问运算符进行求值。
定义于头文件 tensor/expression.hpp 中。
张量表达式
无。
tensor_expression<T,binary_tensor_expression<T,EL,ER,OP>>
参数 | 描述 |
---|---|
T |
张量的类型。 |
EL |
左侧二元张量表达式的类型。 |
ER |
右侧二元张量表达式的类型。 |
OP |
二元运算的类型。 |
成员类型 | 描述 |
---|---|
expression_type_left |
左侧表达式的类型,即 EL 。 |
expression_type_right |
右侧表达式的类型,即 ER 。 |
tensor_type |
引用类型,即 T 。 |
binary_operation |
二元运算的类型,即 OP 。 |
成员 | 描述 |
---|---|
decltype(auto) operator()(std::size_t i) const |
返回对表达式的第 i 个元素的 const 引用。 |
模板类 unary_tensor_expression<T,E,OP>
包含对一个表达式的常量引用,该表达式可以通过使用访问运算符进行求值。
定义于头文件 tensor/expression.hpp 中。
张量表达式
无。
tensor_expression<T,unary_tensor_expression<T,E,OP>>
参数 | 描述 |
---|---|
T |
张量的类型。 |
E |
一元张量表达式的类型。 |
OP |
一元运算的类型。 |
成员类型 | 描述 |
---|---|
expression_type |
表达式的类型,即 E 。 |
tensor_type |
引用类型,即 T 。 |
unary_operation |
一元运算的类型,即 OP 。 |
成员 | 描述 |
---|---|
decltype(auto) operator()(std::size_t i) const |
返回对表达式的第 i 个元素的 const 引用。 |
版权 (©) 2018 Cem Bassoy
使用、修改和分发受 Boost 软件许可协议 1.0 版的约束。(请参阅随附文件 LICENSE_1_0.txt 或在 https://boost.ac.cn/LICENSE_1_0.txt 复制)。