Skip to main content

ClikaRT::ops::outer

function

outer()

Tensor outer(Tensor a, Tensor b)

Outer product of two 1-D tensors: [m] x [n] -> [m, n].

outij=aibj\mathrm{out}_{ij} = a_i\,b_j

Parameters

  • a: a 1-D tensor [m].
  • b: a 1-D tensor [n].

Returns: [m, n].

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) when either operand is not 1-D.

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