Automatic Differentiation
 
Loading...
Searching...
No Matches
check_sorted.hpp File Reference
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/err/throw_domain_error.hpp>
#include <stan/math/prim/fun/to_ref.hpp>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename EigVec , require_eigen_vector_t< EigVec > * = nullptr>
void stan::math::check_sorted (const char *function, const char *name, const EigVec &y)
 Check if the specified vector is sorted into increasing order (repeated values are okay).
 
template<typename T_y >
void stan::math::check_sorted (const char *function, const char *name, const std::vector< T_y > &y)
 Check if the specified vector is sorted into increasing order (repeated values are okay).