Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
row.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__MATRIX__ROW_HPP__
2 #define __STAN__MATH__MATRIX__ROW_HPP__
3 
6 
7 namespace stan {
8  namespace math {
9 
22  template <typename T>
23  inline
24  Eigen::Matrix<T,1,Eigen::Dynamic>
25  row(const Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>& m,
26  size_t i) {
27  validate_row_index(m,i,"row");
28  return m.row(i - 1);
29  }
30 
31  }
32 }
33 #endif

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