Returns True if two broadcastable fields have have equal array values to within numerical tolerance.
For numeric data arrays f.allclose(y, atol, rtol) is equivalent to (abs(f - y) <= ``atol + rtol*abs(y)).all(), otherwise it is equivalent to (f == y).all().
See also
Parameters: | y : |
---|---|
Returns: |
|
Examples: |
>>> f.allclose(g)
True
>>> f.allclose(24)
False
>>> f.allclose(f.data)
True