Fix bugs in matrix multiplication with binary circuits.

This commit is contained in:
Marcel Keller
2022-07-25 18:12:04 +10:00
parent 101879f37a
commit 81419ba321
4 changed files with 33 additions and 5 deletions

View File

@@ -146,7 +146,7 @@ public:
if (this != &res)
res.get_regs().assign(this->get_regs().begin(),
this->get_regs().begin()
+ max(size_t(n_bits), this->get_regs().size()));
+ min(size_t(n_bits), this->get_regs().size()));
res.resize_regs(n_bits);
}