cimod
C++ library for a binary (and polynomial) quadratic model.
binary_quadratic_model.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <functional>
#include <iostream>
#include <limits>
#include <set>
#include <string>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include "cimod/disable_eigen_warning.hpp"
#include "cimod/hash.hpp"
#include "cimod/json.hpp"
#include "cimod/utilities.hpp"
#include "cimod/vartypes.hpp"
Include dependency graph for binary_quadratic_model.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cimod::Dense
 
struct  cimod::Sparse
 
class  cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
 Class for dense binary quadratic model. More...
 

Namespaces

 cimod
 

Typedefs

template<typename IndexType , typename FloatType >
using cimod::Linear = std::unordered_map< IndexType, FloatType >
 Type alias for linear bias. More...
 
template<typename IndexType , typename FloatType >
using cimod::Quadratic = std::unordered_map< std::pair< IndexType, IndexType >, FloatType, pair_hash >
 Type alias for quadratic bias. More...
 
template<typename IndexType , typename FloatType >
using cimod::Adjacency = std::unordered_map< IndexType, std::unordered_map< IndexType, FloatType > >
 Type alias for adjacency list. More...