Skip to main content

ClikaRT::ops::copysign

function

copysign()

Tensor copysign(Tensor a, ScalarOrTensor other)

Elementwise |a| carrying the sign of other. Broadcasts and promotes as add.

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

Throws

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

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