diff options
author | Nao Pross <np@0hm.ch> | 2024-03-02 18:44:19 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-03-02 18:44:19 +0100 |
commit | ea92e1c8f1124a0f67d8711968224933e72d82fd (patch) | |
tree | 78ba298f670249ca98974e2d93db1db05122eebf | |
parent | Add Expr.node to ease iteration expression tree node children (diff) | |
download | mdpoly-ea92e1c8f1124a0f67d8711968224933e72d82fd.tar.gz mdpoly-ea92e1c8f1124a0f67d8711968224933e72d82fd.zip |
Rename Repr.zero_smaller_than to Repr.zero_out_small
Diffstat (limited to '')
-rw-r--r-- | mdpoly/abc.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |