Tensor expressions are TensorLikes that represent a composite operation on other TensorLikes.
More...
Classes | |
| struct | sp::t::Make2DTensorDiagonalReal< E > |
| Set the imaginary components of the diagonals of a 2D tensor to zero. More... | |
| struct | sp::t::OuterProd< LHS, RHS > |
Represents the Tensor formed by the outer product of two tensors. More... | |
Macros | |
| #define | ELTWISE_TENSOR_OP(NAME, FN, NUM_ARGS) |
| #define | UNARY_TENSOR_OP(NAME, FN) |
Create a Tensor operator from a unary functor type. More... | |
| #define | BINARY_TENSOR_OP(NAME, FN) |
Create a Tensor operator from a binary functor type. More... | |
Tensor expressions are TensorLikes that represent a composite operation on other TensorLikes.
Reading from a Tensor expression typically causes the value(s) you requested to be computed on demand, although stateful tensor expressions are allowed, and used for things like pseudorandom virtual tensors.
| #define BINARY_TENSOR_OP | ( | NAME, | |
| FN | |||
| ) |
Create a Tensor operator from a binary functor type.
| #define ELTWISE_TENSOR_OP | ( | NAME, | |
| FN, | |||
| NUM_ARGS | |||
| ) |
| #define UNARY_TENSOR_OP | ( | NAME, | |
| FN | |||
| ) |
Create a Tensor operator from a unary functor type.