Automatic Differentiation
 
Loading...
Searching...
No Matches
is_stan_scalar_or_eigen.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_STAN_SCALAR_OR_EIGEN_HPP
2#define STAN_MATH_PRIM_META_IS_STAN_SCALAR_OR_EIGEN_HPP
3
10
11#include <type_traits>
12
13namespace stan {
14
19template <typename T>
22 || is_eigen<std::decay_t<T>>::value>;
23
31template <typename T>
36} // namespace stan
37#endif
require_t< is_stan_scalar_or_eigen< std::decay_t< T > > > require_stan_scalar_or_eigen_t
Require type satisfies is_stan_scalar_or_eigen.
bool_constant< is_stan_scalar< std::decay_t< T > >::value||is_eigen< std::decay_t< T > >::value > is_stan_scalar_or_eigen
Extends std::true_type if all the provided types are either a Stan Scalar type or a type inheriting f...
std::integral_constant< bool, B > bool_constant
Alias for structs used for wraps a static constant of bool.
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9
Check if type derives from EigenBase
Definition is_eigen.hpp:21