OR-Tools  9.3
sparse_collection_matchers.h File Reference

Go to the source code of this file.

Namespaces

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

Typedefs

template<typename T >
using Pairs = std::initializer_list< std::pair< int64_t, const T > >
 
using Coefficient = std::tuple< int64_t, int64_t, const double >
 
using Coefficients = std::initializer_list< Coefficient >
 

Functions

SparseDoubleVectorProto MakeSparseDoubleVector (std::initializer_list< std::pair< int64_t, double > > pairs)
 
SparseBoolVectorProto MakeSparseBoolVector (std::initializer_list< std::pair< int64_t, bool > > pairs)
 
SparseDoubleMatrixProto MakeSparseDoubleMatrix (std::initializer_list< std::tuple< int64_t, int64_t, double > > values)
 
 MATCHER_P (SparseVectorMatcher, pairs, "")
 
 MATCHER_P (SparseDoubleMatrixMatcher, coefficients, "")