All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
length.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_META_LENGTH_HPP
#define STAN_MATH_PRIM_MAT_META_LENGTH_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
template <typename T, int R, int C>
size_t length(const Eigen::Matrix<T, R, C>& m) {
return m.size();
}
}
#endif
stan::length
size_t length(const std::vector< T > &x)
Definition: length.hpp:10
Eigen.hpp

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