OR-Tools  9.0
sparse_vector_validator.h File Reference

Go to the source code of this file.

Namespaces

 operations_research
 Collection of objects used to extend the Constraint Solver library.
 
 operations_research::math_opt
 

Functions

template<typename T >
absl::Status CheckIdsAndValuesSize (const SparseVectorView< T > &vector_view, absl::string_view value_name="values")
 
template<typename T , typename = std::enable_if<!std::is_floating_point<T>::value>>
absl::Status CheckValues (const SparseVectorView< T > &vector_view, absl::string_view value_name="values")
 
template<typename T , typename = std::enable_if<!std::is_floating_point<T>::value>>
absl::Status CheckIdsAndValues (const SparseVectorView< T > &vector_view, absl::string_view value_name="values")
 
template<typename T , typename = std::enable_if<std::is_floating_point<T>::value>>
absl::Status CheckValues (const SparseVectorView< T > &vector_view, const DoubleOptions &options, absl::string_view value_name="values")
 
template<typename T , typename = std::enable_if<std::is_floating_point<T>::value>>
absl::Status CheckIdsAndValues (const SparseVectorView< T > &vector_view, const DoubleOptions &options, absl::string_view value_name="values")