MCPcopy Create free account
hub / github.com/numpy/numpy / _DomainGreater

Class _DomainGreater

numpy/ma/core.py:861–874  ·  view source on GitHub ↗

DomainGreater(v)(x) is True where x <= v.

Source from the content-addressed store, hash-verified

859
860
861class _DomainGreater:
862 """
863 DomainGreater(v)(x) is True where x <= v.
864
865 """
866
867 def __init__(self, critical_value):
868 "DomainGreater(v)(x) = true where x <= v"
869 self.critical_value = critical_value
870
871 def __call__(self, x):
872 "Executes the call behavior."
873 with np.errstate(invalid='ignore'):
874 return umath.less_equal(x, self.critical_value)
875
876
877class _DomainGreaterEqual:

Callers 1

core.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected