All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
rows.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_ROWS_HPP
#define STAN_MATH_PRIM_MAT_FUN_ROWS_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
namespace math {
template <typename T, int R, int C>
inline int rows(const Eigen::Matrix<T, R, C>& m) {
return m.rows();
}
}
}
#endif
stan::math::rows
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
Eigen.hpp

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