Template Function otyca::inverse_softplus

Function Documentation

template<typename T>
T otyca::inverse_softplus(T y)

Computes the inverse of the softplus function (numerically stable).

Template Parameters:

T – The numeric type.

Parameters:

y – The output value from softplus (must be > 0)

Returns:

The input value before applying softplus.