Stan Math Library
2.9.0
reverse mode automatic differentiation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
stan
math
prim
scal
meta
is_constant_struct.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_META_IS_CONSTANT_STRUCT_HPP
2
#define STAN_MATH_PRIM_SCAL_META_IS_CONSTANT_STRUCT_HPP
3
4
#include <
stan/math/prim/scal/meta/is_constant.hpp
>
5
#include <
stan/math/prim/mat/fun/Eigen.hpp
>
6
#include <vector>
7
8
9
namespace
stan
{
10
15
template
<
typename
T>
16
struct
is_constant_struct
{
17
enum
{
value
=
is_constant<T>::value
};
18
};
19
20
template
<
typename
T>
21
struct
is_constant_struct
<
std
::vector<T> > {
22
enum
{
value
=
is_constant_struct<T>::value
};
23
};
24
25
template
<
typename
T,
int
R,
int
C>
26
struct
is_constant_struct
<
Eigen
::Matrix<T, R, C> > {
27
enum
{
value
=
is_constant_struct<T>::value
};
28
};
29
30
template
<
typename
T>
31
struct
is_constant_struct
<
Eigen
::Block<T> > {
32
enum
{
value
=
is_constant_struct<T>::value
};
33
};
34
35
}
36
#endif
37
stan::is_constant
Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the ...
Definition:
is_constant.hpp:22
stan::is_constant_struct::value
Definition:
is_constant_struct.hpp:17
stan
Definition:
log_sum_exp.hpp:8
std
Definition:
std_numeric_limits.hpp:7
Eigen
(Expert) Numerical traits for algorithmic differentiation variables.
Definition:
Eigen_NumTraits.hpp:8
stan::is_constant_struct
Metaprogram to determine if a type has a base scalar type that can be assigned to type double...
Definition:
is_constant_struct.hpp:16
Eigen.hpp
is_constant.hpp
[
Stan Home Page
]
© 2011–2015, Stan Development Team.