arnaucube
arnaucube/poulpyPublic Self-hosted repository
[pack]: fixed typo that would cause to always return a full list of indices
Jean-Philippe Bossuat jeanphilippe.bossuat@gmail.com
Fri, 10 Jan 2025 11:59:15 +0100
commit

29a02292aee04bce873d83a3c233bdfbb87c7736

parent

332e07dbbf75268bbd336ee8ad4c0dd1718c358f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M math/src/ring/impl_u64/packing.rs → math/src/ring/impl_u64/packing.rs

@@ -55,7 +55,7 @@ let mut indices: Vec<usize> = Vec::<usize>::new();

// Retrives non-empty indexes polys.iter().enumerate().for_each(|(i, poly)| { - if Some(poly) != None { + if !poly.is_none() { indices.push(i); } });