All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
is_constant_struct.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_META_IS_CONSTANT_STRUCT_HPP
#define STAN_MATH_PRIM_SCAL_META_IS_CONSTANT_STRUCT_HPP
#include <stan/math/prim/scal/meta/is_constant.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <vector>
namespace stan {
template <typename T>
struct is_constant_struct {
enum { value = is_constant<T>::value };
};
template <typename T>
struct is_constant_struct<std::vector<T> > {
enum { value = is_constant_struct<T>::value };
};
template <typename T, int R, int C>
struct is_constant_struct<Eigen::Matrix<T, R, C> > {
enum { value = is_constant_struct<T>::value };
};
template <typename T>
struct is_constant_struct<Eigen::Block<T> > {
enum { value = is_constant_struct<T>::value };
};
}
#endif
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::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.