Automatic Differentiation
 
Loading...
Searching...
No Matches
normal_lccdf.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_PROB_NORMAL_LCCDF_HPP
2#define STAN_MATH_PRIM_PROB_NORMAL_LCCDF_HPP
3
5
6namespace stan {
7namespace math {
8namespace internal {
9constexpr char normal_lccdf_func[] = "normal_lccdf";
10} // namespace internal
11
12template <typename T_y, typename T_loc, typename T_scale,
14 T_y, T_loc, T_scale>* = nullptr>
16 const T_loc& mu,
17 const T_scale& sigma) {
18 return normal_lcdf<internal::normal_lccdf_func>(
19 -as_array_or_scalar(y), -as_array_or_scalar(mu), sigma);
20}
21
22} // namespace math
23} // namespace stan
24#endif
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.
return_type_t< T_y_cl, T_loc_cl, T_scale_cl > normal_lccdf(const T_y_cl &y, const T_loc_cl &mu, const T_scale_cl &sigma)
Returns the normal log complementary cumulative distribution function for the given location,...
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
constexpr char normal_lccdf_func[]
T as_array_or_scalar(T &&v)
Returns specified input value.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...