Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ max_size_mvt()

template<typename T1 , typename... Ts>
size_t stan::math::max_size_mvt ( const T1 &  x1,
const Ts &...  xs 
)
inline

Calculate the size of the largest multivariate input.

A multivariate container is either an Eigen matrix, whose mvt size is 1, or an std::vector of Eigen matrices, whose mvt size is the size of the std::vector. It is an error to supply any other type of input.

Template Parameters
T1type of the first input
Tstypes of the other inputs
Parameters
x1first input
xsother inputs
Returns
the size of the largest input
Exceptions
`invalid_argument`if provided with an input that is not an Eigen matrix or std::vector of Eigen matrices

Definition at line 24 of file max_size_mvt.hpp.