Automatic Differentiation
 
Loading...
Searching...
No Matches
max_size_mvt.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_MAX_SIZE_MVT_HPP
2#define STAN_MATH_PRIM_FUN_MAX_SIZE_MVT_HPP
3
5#include <algorithm>
6
7namespace stan {
8namespace math {
9
23template <typename T1, typename... Ts>
24inline size_t max_size_mvt(const T1& x1, const Ts&... xs) {
25 return std::max({stan::math::size_mvt(x1), stan::math::size_mvt(xs)...});
26}
27
28} // namespace math
29} // namespace stan
30#endif
size_t size_mvt(const ScalarT &)
Provides the size of a multivariate argument.
Definition size_mvt.hpp:24
size_t max_size_mvt(const T1 &x1, const Ts &... xs)
Calculate the size of the largest multivariate input.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9