Automatic Differentiation
 
Loading...
Searching...
No Matches
is_eigen_matrix_base.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_EIGEN_MATRIX_BASE_HPP
2#define STAN_MATH_PRIM_META_IS_EIGEN_MATRIX_BASE_HPP
3
8#include <type_traits>
9
10namespace stan {
11
20template <typename T>
22 : bool_constant<is_base_pointer_convertible<Eigen::MatrixBase, T>::value> {
23};
24
32template <typename T>
35
41template <template <class...> class TypeCheck, class... Check>
44 TypeCheck, Check...>>;
45
51template <template <class...> class TypeCheck, class... Check>
54 is_eigen_matrix_base, value_type_t, TypeCheck, Check>...>;
57} // namespace stan
58
59#endif
require_t< is_eigen_matrix_base< std::decay_t< T > > > require_eigen_matrix_base_t
Require type satisfies is_eigen_matrix_base.
require_t< container_type_check_base< is_eigen_matrix_base, value_type_t, TypeCheck, Check... > > require_eigen_matrix_base_vt
Require type satisfies is_eigen_matrix_base.
require_all_t< container_type_check_base< is_eigen_matrix_base, value_type_t, TypeCheck, Check >... > require_all_eigen_matrix_base_vt
Require all of the types satisfy is_eigen_matrix_base.
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
bool_constant< math::conjunction< ContainerCheck< std::decay_t< Check > >..., TypeCheck< ValueCheck< Check > >... >::value > container_type_check_base
Used as the base for checking whether a type is a container with an underlying scalar type.
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 ...
Definition fvar.hpp:9
Checks whether type T is derived from Eigen::MatrixBase.