Stan Math Library  2.8.0
reverse mode automatic differentiation
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
rows.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_ROWS_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_ROWS_HPP
3 
5 
6 namespace stan {
7  namespace math {
8 
19  template <typename T, int R, int C>
20  inline int rows(const Eigen::Matrix<T, R, C>& m) {
21  return m.rows();
22  }
23 
24  }
25 }
26 #endif
int rows(const Eigen::Matrix< T, R, C > &m)
Return the number of rows in the specified matrix, vector, or row vector.
Definition: rows.hpp:20

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