Function tensorProduct

Tensor product

auto tensorProduct(T1, T2) (
  T1 t1,
  T2 t2
);

Description

Tensor product of two tensors of order N and sizes S1 and S2 gives a tensor of order 2N and sizes (S1,S2).