From ea92e1c8f1124a0f67d8711968224933e72d82fd Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 2 Mar 2024 18:44:19 +0100 Subject: Rename Repr.zero_smaller_than to Repr.zero_out_small --- mdpoly/abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdpoly/abc.py b/mdpoly/abc.py index c60311a..56507d6 100644 --- a/mdpoly/abc.py +++ b/mdpoly/abc.py @@ -76,7 +76,8 @@ class Repr(Protocol): """ Return indices to non-zero terms in the polynomial at the given matrix entry """ - def zero_smaller_than(self, eps: Number = NUMERICS_EPS) -> None: + def zero_out_small(self, eps: Number = NUMERICS_EPS) -> None: + """ Zero out (set to zero) values that are smaller than EPS """ for entry in self.entries(): for term in self.terms(entry): if self.at(entry, term) < eps: -- cgit v1.2.1