DomainGreaterEqual(v)(x) is True where x < v.
| 875 | |
| 876 | |
| 877 | class _DomainGreaterEqual: |
| 878 | """ |
| 879 | DomainGreaterEqual(v)(x) is True where x < v. |
| 880 | |
| 881 | """ |
| 882 | |
| 883 | def __init__(self, critical_value): |
| 884 | "DomainGreaterEqual(v)(x) = true where x < v" |
| 885 | self.critical_value = critical_value |
| 886 | |
| 887 | def __call__(self, x): |
| 888 | "Executes the call behavior." |
| 889 | with np.errstate(invalid='ignore'): |
| 890 | return umath.less(x, self.critical_value) |
| 891 | |
| 892 | |
| 893 | class _MaskedUFunc: |