Stan Math Library  2.20.0
reverse mode automatic differentiation
length_mvt.hpp
Go to the documentation of this file.
1 
2 #ifndef STAN_MATH_PRIM_SCAL_META_LENGTH_MVT_HPP
3 #define STAN_MATH_PRIM_SCAL_META_LENGTH_MVT_HPP
4 
5 #include <stdexcept>
6 
7 namespace stan {
8 
20 template <typename T>
21 size_t length_mvt(const T& /* unused */) {
22  throw std::invalid_argument("length_mvt passed to an unrecognized type.");
23  return 1U;
24 }
25 
26 } // namespace stan
27 #endif
void invalid_argument(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw an invalid_argument exception with a consistently formatted message.
size_t length_mvt(const Eigen::Matrix< T, R, C > &)
Definition: length_mvt.hpp:12

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