Skip to main content

ClikaRT::ops::logaddexp

function

logaddexp()

Tensor logaddexp(Tensor a, Tensor b)

Elementwise log(ea+eb)\log(e^a + e^b), computed overflow-safely (the log-domain accumulation primitive). 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 1427