Stan Math Library  2.10.0
reverse mode automatic differentiation
cols.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_COLS_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_COLS_HPP
3 
5 
6 namespace stan {
7  namespace math {
8 
19  template <typename T, int R, int C>
20  inline int cols(const Eigen::Matrix<T, R, C>& m) {
21  return m.cols();
22  }
23 
24  }
25 }
26 #endif
int cols(const Eigen::Matrix< T, R, C > &m)
Return the number of columns in the specified matrix, vector, or row vector.
Definition: cols.hpp:20

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