triqs.operators.operators.Operator.is_almost_zero
- Operator.is_almost_zero()
Dispatched C++ function(s).
[1] (precision: float = 1e-10) -> bool
Check if the current operator \(\hat{O}\) is close to zero.
- Parameters:
- precisionfloat
Tolerance \(\epsilon\) for considering a coefficient to be zero.
- Returns:
- bool
True if \(|a_i| < \epsilon\) for all coefficients \(a_i\), false otherwise.