Stan Math Library  2.15.0
reverse mode automatic differentiation
Static Public Member Functions | List of all members
stan::math::trunc_fun Struct Reference

Structure to wrap trunc() so it can be vectorized. More...

#include <trunc.hpp>

Static Public Member Functions

template<typename T >
static T fun (const T &x)
 Return the truncation of the specified argument to the nearest value. More...
 

Detailed Description

Structure to wrap trunc() so it can be vectorized.

Definition at line 13 of file trunc.hpp.

Member Function Documentation

§ fun()

template<typename T >
static T stan::math::trunc_fun::fun ( const T &  x)
inlinestatic

Return the truncation of the specified argument to the nearest value.

Template Parameters
Targument type
Parameters
xargument
Returns
truncation of the argument

Definition at line 23 of file trunc.hpp.


The documentation for this struct was generated from the following file:

     [ Stan Home Page ] © 2011–2016, Stan Development Team.