Stan Math Library  2.20.0
reverse mode automatic differentiation
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 } // namespace math
25 } // namespace stan
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–2018, Stan Development Team.