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

◆ cos() [6/9]

template<typename Container , require_ad_container_t< Container > * = nullptr>
auto stan::math::cos ( const Container &  x)
inline

Returns the elementwise cos() of the input, which may be a scalar or any Stan container of numeric scalars.

Version of cos() that accepts std::vectors, Eigen Matrix/Array objects or expressions, and containers of these.

Template Parameters
Containertype of container
Parameters
xangles in radians
Returns
Cosine of each value in x.
Template Parameters
ContainerType of x
Parameters
xContainer
Returns
Cosine of each value in x.

Definition at line 63 of file cos.hpp.