1#ifndef STAN_MATH_PRIM_FUN_ALL_HPP
2#define STAN_MATH_PRIM_FUN_ALL_HPP
20template <
typename T, require_t<std::is_convertible<T,
bool>>* =
nullptr>
21constexpr inline bool all(T x) {
35template <
typename ContainerT,
37inline bool all(
const ContainerT& x) {
42template <
typename... Types>
43inline bool all(
const std::tuple<Types...>& x);
56template <
typename InnerT>
57inline bool all(
const std::vector<InnerT>& x) {
58 return std::all_of(x.begin(), x.end(), [](
const auto& i) { return all(i); });
70template <
typename... Types>
71inline bool all(
const std::tuple<Types...>& x) {
74 [&all_true](
const auto& i) {
75 all_true = all_true &&
all(i);
require_t< container_type_check_base< is_eigen, scalar_type_t, TypeCheck, Check... > > require_eigen_st
Require type satisfies is_eigen.
constexpr auto for_each(F &&f, T &&t)
Apply a function to each element of a tuple.
constexpr bool all(T x)
Return true if all values in the input are true.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...