aesara.tensor.slinalg.kron

Contents

aesara.tensor.slinalg.kron#

aesara.tensor.slinalg.kron(a, b)[source]#

Kronecker product.

Same as scipy.linalg.kron(a, b).

Parameters:
  • a (array_like) –

  • b (array_like) –

Return type:

array_like with a.ndim + b.ndim - 2 dimensions

Notes

numpy.kron(a, b) != scipy.linalg.kron(a, b)! They don’t have the same shape and order when a.ndim != b.ndim != 2.