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

◆ trunc() [4/5]

template<typename T , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T > * = nullptr>
auto stan::math::trunc ( const T &  x)
inline

Return the elementwise application of trunc() 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 trunc of container elements

Definition at line 42 of file trunc.hpp.