Template Function otyca::softplus

Function Documentation

template<typename T>
T otyca::softplus(T x)

Computes the numerically stable softplus function.

Template Parameters:

T – The numeric type.

Parameters:

x – The input value.

Returns:

The softplus function result.