Stan Math Library
5.0.0
Automatic Differentiation
|
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/cosh.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/i_times.hpp>
#include <stan/math/prim/functor/apply_scalar_unary.hpp>
#include <stan/math/prim/functor/apply_vector_unary.hpp>
#include <cmath>
#include <complex>
Go to the source code of this file.
Classes | |
struct | stan::math::cos_fun |
Structure to wrap cos() so it can be vectorized. More... | |
Namespaces | |
namespace | stan |
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
namespace | stan::math |
Matrices and templated mathematical functions. | |
namespace | stan::math::internal |
A comparator that works for any container type that has the brackets operator. | |
Functions | |
template<typename T , require_arithmetic_t< T > * = nullptr> | |
auto | stan::math::cos (const T x) |
Return the cosine of the arithmetic argument. | |
template<typename Container , require_ad_container_t< Container > * = nullptr> | |
auto | stan::math::cos (const Container &x) |
Returns the elementwise cos() of the input, which may be a scalar or any Stan container of numeric scalars. | |
template<typename T > | |
std::complex< T > | stan::math::internal::complex_cos (const std::complex< T > &z) |
Return the cosine of the complex argument. | |