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

◆ any() [4/4]

template<typename InnerT >
bool stan::math::any ( const std::vector< InnerT > &  x)
inline

Return true if any values in the input are true.

Overload for a std::vector/nested inputs. The Eigen::Map/apply_vector_unary approach cannot be used as std::vector<bool> types do not have a .data() member and are not always stored contiguously.

Template Parameters
InnerTType within std::vector
Parameters
xNested container of boolean inputs
Returns
Boolean indicating whether any elements are true

Definition at line 57 of file any.hpp.