Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ logb()

template<typename T , typename = require_autodiff_t<T>>
double stan::math::logb ( const T &  x)

Returns the value of the unbiased radix-independent exponent from the floating-point argument.

Implementation note: This implementation works for all autodiff types because it is a step function, so can return a double which will produce the correct zero derivative if promoted to an autodiff variable.

Template Parameters
Tfloating-point type
Parameters
[in]xfloating-point argument
Returns
unbiased radix-independent exponent of the argument

Definition at line 24 of file logb.hpp.