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

◆ max() [2/2]

template<typename T , require_container_t< T > * = nullptr>
value_type_t< T > stan::math::max ( const T &  m)
inline

Returns the maximum value in the specified matrix, vector, row vector or std vector.

Template Parameters
Ttype of the container
Parameters
mspecified matrix, vector, row vector or std vector
Returns
maximum value in the container, or -infinity if the container is size zero and the scalar type in container is floating point number
Exceptions
<code>std::invalid_argument</code>if the vector is size zero and the scalar type in the container is integer

Definition at line 42 of file max.hpp.