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

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