Stan Math Library
5.0.0
Automatic Differentiation
Loading...
Searching...
No Matches
is_container_or_var_matrix.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_META_IS_CONTAINER_OR_VAR_MATRIX_HPP
2
#define STAN_MATH_PRIM_META_IS_CONTAINER_OR_VAR_MATRIX_HPP
3
4
#include <
stan/math/prim/meta/bool_constant.hpp
>
5
#include <
stan/math/prim/meta/disjunction.hpp
>
6
#include <
stan/math/prim/meta/is_eigen.hpp
>
7
#include <
stan/math/prim/meta/is_vector.hpp
>
8
#include <
stan/math/prim/meta/is_container.hpp
>
9
#include <
stan/math/prim/meta/is_var_matrix.hpp
>
10
#include <
stan/math/prim/meta/scalar_type.hpp
>
11
#include <
stan/math/prim/meta/value_type.hpp
>
12
#include <
stan/math/prim/meta/require_helpers.hpp
>
13
14
#include <type_traits>
15
16
namespace
stan
{
17
22
template
<
typename
Container>
23
using
is_container_or_var_matrix
24
=
bool_constant<math::disjunction<is_container<Container>
,
25
is_var_matrix<Container>
>::value>;
26
27
}
// namespace stan
28
29
#endif
bool_constant.hpp
disjunction.hpp
stan::bool_constant
std::integral_constant< bool, B > bool_constant
Alias for structs used for wraps a static constant of bool.
Definition
bool_constant.hpp:12
is_container.hpp
is_eigen.hpp
is_var_matrix.hpp
is_vector.hpp
stan::is_container_or_var_matrix
bool_constant< math::disjunction< is_container< Container >, is_var_matrix< Container > >::value > is_container_or_var_matrix
Deduces whether type is eigen matrix, standard vector, or var<Matrix>.
Definition
is_container_or_var_matrix.hpp:25
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
scalar_type.hpp
value_type.hpp
require_helpers.hpp
stan::is_var_matrix
Check if a type is a var_value whose value_type is derived from Eigen::EigenBase
Definition
is_var_matrix.hpp:20
stan
math
prim
meta
is_container_or_var_matrix.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.