|
| template<typename V, std::size_t D, char I, char J> |
| auto | mtl::tensor::bind (const tensor< V, 2, D > &t, Index< I >, Index< J >) |
| | Bind a rank-2 tensor to two named indices: A(i, j).
|
| template<typename V, std::size_t D, char I> |
| auto | mtl::tensor::bind (const tensor< V, 1, D > &t, Index< I >) |
| | Bind a rank-1 tensor to one named index: v(i).
|
| template<typename V, std::size_t D, char I, char J> |
| void | mtl::tensor::bind (const tensor< V, 2, D > &&, Index< I >, Index< J >)=delete |
| | A bound temporary would dangle at the end of the full-expression.
|
| template<typename V, std::size_t D, char I> |
| void | mtl::tensor::bind (const tensor< V, 1, D > &&, Index< I >)=delete |
| template<std::size_t NA, std::size_t NB> |
| constexpr char | mtl::tensor::detail_index::find_repeated (const std::array< char, NA > &a, const std::array< char, NB > &b) |
| | Find the repeated index between two name arrays.
|
| template<std::size_t NA, std::size_t NB> |
| constexpr std::size_t | mtl::tensor::detail_index::count_shared (const std::array< char, NA > &a, const std::array< char, NB > &b) |
| | How many indices of a also appear in b.
|
| template<std::size_t N> |
| constexpr std::size_t | mtl::tensor::detail_index::find_pos (const std::array< char, N > &arr, char c) |
| | Find the position of a character in an array.
|
| template<typename V, std::size_t D, char AI, char AJ, char BI, char BJ> |
| auto | mtl::tensor::contract (const indexed_tensor< tensor< V, 2, D >, AI, AJ > &a, const indexed_tensor< tensor< V, 2, D >, BI, BJ > &b) |
| | Contract two rank-2 tensors over a repeated index.
|
| template<typename V, std::size_t D, char AI, char AJ, char VI> |
| auto | mtl::tensor::contract (const indexed_tensor< tensor< V, 2, D >, AI, AJ > &a, const indexed_tensor< tensor< V, 1, D >, VI > &v) |
| | Contract a rank-2 tensor with a rank-1 tensor (matrix-vector product).
|
| template<typename V, std::size_t D> |
| tensor< V, 2, D > | mtl::tensor::outer (const tensor< V, 1, D > &a, const tensor< V, 1, D > &b) |
| | Outer product of two rank-1 tensors: C_ij = a_i * b_j.
|
| template<typename V, std::size_t D> |
| tensor< V, 4, D > | mtl::tensor::outer (const tensor< V, 2, D > &a, const tensor< V, 2, D > &b) |
| | Outer product of two rank-2 tensors: C_ijkl = A_ij * B_kl.
|