1#ifndef STAN_MATH_PRIM_FUN_PHI_HPP
2#define STAN_MATH_PRIM_FUN_PHI_HPP
32inline double Phi(
double x) {
36 }
else if (x < -5.0) {
38 }
else if (x > 8.25) {
54 static inline auto fun(
const T& x) {
70inline auto Phi(
const T& x) {
require_all_not_t< is_nonscalar_prim_or_rev_kernel_expression< std::decay_t< Types > >... > require_all_not_nonscalar_prim_or_rev_kernel_expression_t
Require none of the types satisfy is_nonscalar_prim_or_rev_kernel_expression.
require_not_t< is_var_matrix< std::decay_t< T > > > require_not_var_matrix_t
Require type does not satisfy is_var_matrix.
fvar< T > erf(const fvar< T > &x)
static constexpr double INV_SQRT_TWO
The value of 1 over the square root of 2, .
fvar< T > Phi(const fvar< T > &x)
fvar< T > erfc(const fvar< T > &x)
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
static auto fun(const T &x)
Structure to wrap Phi() so it can be vectorized.
Base template class for vectorization of unary scalar functions defined by a template class F to a sc...