dwavesystems / dimod

A shared API for QUBO/Ising samplers.
https://docs.ocean.dwavesys.com/en/stable/docs_dimod/
Apache License 2.0
124 stars 81 forks source link

Add C++ CQM::remove_constraints_if() method #1344

Closed arcondello closed 1 year ago

arcondello commented 1 year ago

This method provides a significant speedup when removing constraints in bulk at the C++ level.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1344 (cb29a11) into main (37d6a6c) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1344      +/-   ##
==========================================
+ Coverage   94.92%   94.94%   +0.01%     
==========================================
  Files          95       95              
  Lines        9720     9754      +34     
==========================================
+ Hits         9227     9261      +34     
  Misses        493      493              
Impacted Files Coverage Δ
dimod/include/dimod/constrained_quadratic_model.h 90.90% <100.00%> (+0.22%) :arrow_up:
...estscpp/tests/test_constrained_quadratic_model.cpp 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more