In python-numpy, it is possible to define two multi-dimensional tensors with different sizes and multiply them. For example, here array "a" has shape of (1,3) and "b" of (2,1). The product has shape of (2,3). The makes sense in tensor product as: c_ij = b_i a_j. Although, tensor products with same shape in Eigen (A C++ library) is possible, can we do the same in Eigen?
from numpy import array as arr
a = arr([[1,2,3]])
b = arr([[5], [10]])
c = a * b
# Outputs
a
array([[1, 2, 3]])
b
array([[ 5],
[10]])
c
array([[ 5, 10, 15],
[10, 20, 30]])