Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
rep_vector.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__REP_VECTOR_HPP__
2 #define __STAN__MATH__REP_VECTOR_HPP__
3 
4 #include <stdexcept>
5 #include <vector>
6 
8 
10 
11 namespace stan {
12 
13  namespace math {
14 
15  template <typename T>
16  inline Eigen::Matrix<T,Eigen::Dynamic,1>
17  rep_vector(const T& x, int n) {
18  validate_non_negative_rep(n,"rep_vector");
19  return Eigen::Matrix<T,Eigen::Dynamic,1>::Constant(n,x);
20  }
21 
22  }
23 }
24 
25 #endif

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