cols.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_COLS_HPP
#define STAN_MATH_PRIM_MAT_FUN_COLS_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
namespace math {
template <typename T, int R, int C>
inline int cols(const Eigen::Matrix<T, R, C>& m) {
return m.cols();
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
stan::math::cols
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
Eigen.hpp

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