Skip to main content

ClikaRT::ops::kron

function

kron()​

Tensor kron(Tensor input, Tensor other)

Kronecker product of two same-rank tensors.

Output dim i is input.shape[i] * b.shape[i]; each input element scales a full copy of other into its block.

Parameters

  • input: left operand, rank N.
  • other: right operand, rank N (same rank as input).

Returns: the rank-N Kronecker product.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) when the ranks disagree.

Declared in ClikaRT/compute/ops.h, line 2753