Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
sparse_vector_validator.h File Reference
#include <type_traits>
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "ortools/base/status_macros.h"
#include "ortools/math_opt/core/sparse_vector_view.h"
#include "ortools/math_opt/validators/ids_validator.h"
#include "ortools/math_opt/validators/scalar_validator.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 
namespace  operations_research::math_opt
 An object oriented wrapper for quadratic constraints in ModelStorage.
 

Functions

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