cimod
C++ library for a binary (and polynomial) quadratic model.
cimod::BinaryQuadraticModel< IndexType, FloatType, DataType > Member List

This is the complete list of members for cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >, including all inherited members.

_add_new_label(IndexType label_i)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_add_triangular_elements(const DenseMatrix &mat, bool fix_format, dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_add_triangular_elements(const DenseMatrix &mat, bool fix_format, dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_binary_to_spin(dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_binary_to_spin(dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_delete_label(IndexType label_i, bool force_delete=true)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_delete_label_from_mat(IndexType label_i, dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_delete_label_from_mat(IndexType label_i, dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_generate_linear() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_generate_quadratic(dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_generate_quadratic(dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_idx_to_labelcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >protected
_initialize_quadmat(const Linear< IndexType, FloatType > &linear, const Quadratic< IndexType, FloatType > &quadratic, dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_initialize_quadmat(const Linear< IndexType, FloatType > &linear, const Quadratic< IndexType, FloatType > &quadratic, dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_initialize_quadmat(const DenseMatrix &mat, const std::vector< IndexType > &labels_vec, bool fix_format)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_initialize_quadmat(const SparseMatrix &mat, const std::vector< IndexType > &labels_vec)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_insert_label_into_mat(IndexType label_i, dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_insert_label_into_mat(IndexType label_i, dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_label_to_idxcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >protected
_mat(IndexType label_i, IndexType label_j)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_mat(IndexType label_i)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_mat(IndexType label_i, IndexType label_j) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_mat(IndexType label_i) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_max_linear(dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_max_linear(dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_max_quadratic(dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_max_quadratic(dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_min_linear(dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_min_linear(dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_min_quadratic(dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_min_quadratic(dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_quadmatcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >protected
_quadmat_get(size_t i, size_t j, dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_quadmat_get(size_t i, size_t j, dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_quadmat_get(size_t i, size_t j, dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_quadmat_get(size_t i, size_t j, dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_set_label_to_idx()cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_spin_to_binary(dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
_spin_to_binary(dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlineprotected
add_interaction(const IndexType &u, const IndexType &v, const FloatType &bias)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
add_interactions_from(const Quadratic< IndexType, FloatType > &quadratic)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
add_offset(const FloatType &offset)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
add_variable(const IndexType &v, const FloatType &bias)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
add_variables_from(const Linear< IndexType, FloatType > &linear)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const Linear< IndexType, FloatType > &linear, const Quadratic< IndexType, FloatType > &quadratic, const FloatType &offset, const Vartype vartype)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const Linear< IndexType, FloatType > &linear, const Quadratic< IndexType, FloatType > &quadratic, const Vartype vartype)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const Eigen::Ref< const DenseMatrix > &mat, const std::vector< IndexType > &labels_vec, const FloatType &offset, const Vartype vartype, bool fix_format=true)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const Eigen::Ref< const DenseMatrix > &mat, const std::vector< IndexType > &labels_vec, const Vartype vartype, bool fix_format=true)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const SparseMatrix &mat, const std::vector< IndexType > &labels_vec, const FloatType &offset, const Vartype vartype)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const SparseMatrix &mat, const std::vector< IndexType > &labels_vec, const Vartype vartype)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
BinaryQuadraticModel(const BinaryQuadraticModel &)=defaultcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
change_vartype(const Vartype &vartype)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
change_vartype(const Vartype &vartype, bool inplace)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
contains(const IndexType &v) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
DenseMatrix typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
dispatch_t typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >private
empty(Vartype vartype)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
energies(const std::vector< Sample< IndexType >> &samples_like) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
energy(const Sample< IndexType > &sample) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
fix_variable(const IndexType &v, const int32_t &value)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
fix_variables(const std::vector< std::pair< IndexType, int32_t >> &fixed)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
flip_variable(const IndexType &v)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
from_ising(const Linear< IndexType, FloatType > &linear, const Quadratic< IndexType, FloatType > &quadratic, FloatType offset=0.0)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlinestatic
from_qubo(const Quadratic< IndexType, FloatType > &Q, FloatType offset=0.0)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlinestatic
from_serializable(const json &input, dispatch_t< T, Dense >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlinestatic
from_serializable(const json &input, dispatch_t< T, Sparse >=nullptr)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inlinestatic
get_linear(IndexType label_i) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_linear() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_num_variables() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_offset() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_quadratic(IndexType label_i, IndexType label_j) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_quadratic() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_variables() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
get_vartype() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
interaction_matrix() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
json typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
length() constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
m_offsetcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >protected
m_vartypecimod::BinaryQuadraticModel< IndexType, FloatType, DataType >protected
Matrix typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
normalize(const std::pair< FloatType, FloatType > &bias_range={ 1.0, 1.0 }, const bool use_quadratic_range=false, const std::pair< FloatType, FloatType > &quadratic_range={ 1.0, 1.0 }, const std::vector< IndexType > &ignored_variables={}, const std::vector< std::pair< IndexType, IndexType >> &ignored_interactions={}, const bool ignored_offset=false)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
remove_interaction(const IndexType &u, const IndexType &v)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
remove_interactions_from(const std::vector< std::pair< IndexType, IndexType >> &interactions)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
remove_offset()cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
remove_variable(const IndexType &v)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
remove_variables_from(const std::vector< IndexType > &variables)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
scale(const FloatType &scalar, const std::vector< IndexType > &ignored_variables={}, const std::vector< std::pair< IndexType, IndexType >> &ignored_interactions={}, const bool ignored_offset=false)cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
SparseMatrix typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
SpIter typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >
to_ising()cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
to_qubo()cimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
to_serializable(dispatch_t< T, Dense >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
to_serializable(dispatch_t< T, Sparse >=nullptr) constcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >inline
Vector typedefcimod::BinaryQuadraticModel< IndexType, FloatType, DataType >