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#include <cstdint>
7
8namespace stan {
9namespace math {
10
24template <typename T1, typename... Ts>
25inline int64_t max_size_mvt(const T1& x1, const Ts&... xs) {
26 return std::max({stan::math::size_mvt(x1), stan::math::size_mvt(xs)...});
27}
28
29} // namespace math
30} // namespace stan
31#endif
int64_t size_mvt(const ScalarT &)
Provides the size of a multivariate argument.
Definition size_mvt.hpp:25
int64_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 ...