dimod icon indicating copy to clipboard operation
dimod copied to clipboard

Improve the performance of removing many variables from a C++ quadratic model

Open arcondello opened this issue 3 years ago • 0 comments

Right now, to remove multiple variables from a QM, one uses a loop like

for (auto& v : to_remove) {
    expression.remove_variable(v);
}

it would nice to be able to do so in bulk, and we can save some performance in the reindexing.

arcondello avatar Dec 09 '22 20:12 arcondello