Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
math
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
7
#include <
stan/math/matrix/Eigen.hpp
>
8
9
#include <
stan/math/rep_array.hpp
>
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.