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

◆ log2() [5/6]

template<typename T , require_not_var_matrix_t< T > * = nullptr, require_not_nonscalar_prim_or_rev_kernel_expression_t< T > * = nullptr>
auto stan::math::log2 ( const T &  x)
inline

Return the elementwise application of log2() to specified argument container.

The return type promotes the underlying scalar argument type to double if it is an integer, and otherwise is the argument type.

Template Parameters
Ttype of container
Parameters
xcontainer
Returns
elementwise log2 of container elements

Definition at line 49 of file log2.hpp.