Skip to main content

ClikaRT::ops::hypot

function

hypot()

Tensor hypot(Tensor a, Tensor b)

Elementwise hypotenuse a2+b2\sqrt{a^2 + b^2}. Broadcasts and promotes as add.

Returns: the broadcast-shaped result at the promoted float dtype.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible.

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