| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

is_vector.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_META_IS_VECTOR_HPP
2 #define STAN_MATH_PRIM_MAT_META_IS_VECTOR_HPP
3
4 #include <stan/math/prim/mat/fun/Eigen.hpp>
5 #include <stan/math/prim/scal/meta/is_vector.hpp>
6
7 namespace stan {
8
9 // FIXME: use boost::type_traits::remove_all_extents to
10 // extend to array/ptr types
11
12 template <typename T>
13 struct is_vector<Eigen::Matrix<T, Eigen::Dynamic, 1> > {
14 enum { value = 1 };
15 typedef T type;
16 };
17 template <typename T>
18 struct is_vector<Eigen::Matrix<T, 1, Eigen::Dynamic> > {
19 enum { value = 1 };
20 typedef T type;
21 };
22 template <typename T>
23 struct is_vector<Eigen::Block<T> > {
24 enum { value = 1 };
25 typedef T type;
26 };
27 }
28 #endif
29
stan::is_vector< Eigen::Block< T > >::type
T type
Definition: is_vector.hpp:25
stan
Definition: log_sum_exp.hpp:8
is_vector.hpp
Eigen
(Expert) Numerical traits for algorithmic differentiation variables.
Definition: Eigen_NumTraits.hpp:9
stan::is_vector
Definition: is_vector.hpp:10
stan::is_vector::value
Definition: is_vector.hpp:11
Eigen.hpp
stan::is_vector< Eigen::Matrix< T, Eigen::Dynamic, 1 > >::type
T type
Definition: is_vector.hpp:15
stan::is_vector< Eigen::Matrix< T, 1, Eigen::Dynamic > >::type
T type
Definition: is_vector.hpp:20

[ Stan Home Page ] © 2011–2016, Stan Development Team.