SyTen
dense_kron_exp.h File Reference

Kronecker products and other expansions of DenseTensor. More...

+ Include dependency graph for dense_kron_exp.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  syten
 Syten namespace.
 

Functions

template<Rank rank, typename Scalar >
DenseTensor< rank, Scalar > syten::expansion (DenseTensor< rank, Scalar > const &a, DenseTensor< rank, Scalar > const &b, std::array< Index, rank > const &w)
 Tensor-sums a and b together along the dimensions which have non-zero entries in which. More...
 
template<typename Scalar >
DenseTensor< 1, Scalar > syten::kronaa (DenseTensor< 1, Scalar > const &a, DenseTensor< 1, Scalar > const &b)
 \( R_{i * d_j + j} = A_i B_j \) Kronecker product of two vectors, giving another vector More...
 
template<typename Scalar >
DenseTensor< 2, Scalar > syten::kronbb (DenseTensor< 2, Scalar > const &a, DenseTensor< 2, Scalar > const &b)
 \( R_{i d_k + k, j d_l + l} = A_{ij} B_{kl} \) Kronecker product of two matrices, giving another matrix More...
 
template<Rank rank, typename Scalar >
DenseTensor< rank, Scalar > syten::resize (DenseTensor< rank, Scalar > const &a, std::array< Index, rank > const &newDim, Ordinal which=Ordinal::First)
 Returns a resized dense tensor. More...
 

Detailed Description

Kronecker products and other expansions of DenseTensor.