Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
mat
meta
is_constant.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_MAT_META_IS_CONSTANT_HPP
2
#define STAN_MATH_PRIM_MAT_META_IS_CONSTANT_HPP
3
4
#include <
stan/math/prim/mat/fun/Eigen.hpp
>
5
#include <
stan/math/prim/scal/meta/is_constant.hpp
>
6
7
namespace
stan
{
18
template
<
typename
T,
int
R,
int
C>
19
struct
is_constant
<
Eigen
::Matrix<T, R, C> > {
20
enum
{
value
=
is_constant<T>::value
};
21
};
22
30
template
<
typename
T>
31
struct
is_constant
<
Eigen
::Block<T> > {
32
enum
{
value
=
is_constant<T>::value
};
33
};
34
35
}
// namespace stan
36
#endif
stan::is_constant
Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the ...
Definition:
is_constant.hpp:23
stan
Definition:
log_sum_exp.hpp:8
Eigen
(Expert) Numerical traits for algorithmic differentiation variables.
Definition:
Eigen_NumTraits.hpp:9
Eigen.hpp
stan::is_constant::value
Definition:
is_constant.hpp:28
is_constant.hpp
[
Stan Home Page
]
© 2011–2018, Stan Development Team.