1#ifndef STAN_MATH_PRIM_META_IS_COMPLEX_HPP
2#define STAN_MATH_PRIM_META_IS_COMPLEX_HPP
27template <
typename... Ts>
41template <
typename T,
typename =
void>
46 T,
std::enable_if_t<internal::is_complex_impl<std::decay_t<T>>::value>>
58 using type = std::complex<typename std::decay_t<T>::value_type>;
82template <
typename T,
typename =
void>
87 T,
std::enable_if_t<stan::math::conjunction<
88 std::is_arithmetic<base_type_t<T>>,
89 internal::is_complex_impl<std::decay_t<T>>>::value>>
101template <
typename T,
typename =
void>
106 is_autodiff<base_type_t<T>>,
107 internal::is_complex_impl<std::decay_t<T>>>::value>>
127template <
typename... Types>
132template <
typename... Types>
137template <
typename... Types>
168template <
template <
class...>
class TypeCheck,
class Check>
197 :
bool_constant<!is_complex<value_type_t<std::decay_t<T>>>::value> {};
require_all_t< is_complex< Check >, TypeCheck< base_type_t< Check > > > require_complex_bt
Require type satisfies is_eigen.
require_all_t< is_complex< std::decay_t< Types > >... > require_all_complex_t
Require all of the types satisfy is_complex.
require_not_t< is_complex< std::decay_t< T > > > require_not_complex_t
Require type does not satisfy is_complex.
require_all_not_t< is_complex< std::decay_t< Types > >... > require_all_not_complex_t
Require none of the types satisfy is_complex.
require_not_t< is_complex< value_type_t< std::decay_t< T > > > > require_not_vt_complex
Require value type does not satisfy is_complex.
require_t< is_complex< std::decay_t< T > > > require_complex_t
Require type satisfies is_complex.
require_any_t< is_complex< std::decay_t< Types > >... > require_any_complex_t
Require any of the types satisfy is_complex.
require_t< is_complex< value_type_t< std::decay_t< T > > > > require_vt_complex
Require value type satisfies is_complex.
require_not_t< is_complex< scalar_type_t< std::decay_t< T > > > > require_not_st_complex
Require scalar type does not satisfy is_complex.
std::enable_if_t<!Check::value > require_not_t
If condition is false, template is disabled.
std::enable_if_t< math::disjunction< Checks... >::value > require_any_t
If any condition is true, template is enabled.
std::enable_if_t<!math::disjunction< Checks... >::value > require_all_not_t
If all conditions are false, template is enabled.
typename base_type< T >::type base_type_t
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
std::enable_if_t< math::conjunction< Checks... >::value > require_all_t
If all conditions are true, template is enabled Returns a type void if all conditions are true and ot...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
base_type_t< typename std::decay_t< T >::value_type > type
Metaprogram structure to determine the base base type of a template argument.
Provides a member constant value which is equal to true if T is an instance of std::complex and false...
If T is a complex type with an inner autodiff type (that is, an instance of std::complex<var> or std:...
If T is a complex type with an inner arithmetic type (that is, an instance of std::complex<Arithmetic...
If T is a complex type (that is, an instance of std::complex) or a cv-qualified version thereof,...
If the value_type of the type T is of type std::complex or a cv-qualified version thereof,...
If the value_type of the type T is not of type std::complex or a cv-qualified version thereof,...
std::complex< typename std::decay_t< T >::value_type > type
Metaprogram structure to determine the base scalar type of a template argument.