ffsim.SupportsApproximateEquality¶
- class ffsim.SupportsApproximateEquality(*args, **kwargs)[source]¶
Bases:
ProtocolAn object that can be compared approximately.
Methods
_approx_eq_(other, rtol, atol)Return whether the object is approximately equal to another object.
- _approx_eq_(other, rtol, atol)[source]¶
Return whether the object is approximately equal to another object.
See the documentation of
np.isclosefor the interpretation of the tolerance parametersrtolandatol.