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

Function greater_equal

numpy/core/defchararray.py:157–180  ·  view source on GitHub ↗

Return (x1 >= x2) element-wise. Unlike `numpy.greater_equal`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_

(x1, x2)

Source from the content-addressed store, hash-verified

155
156@array_function_dispatch(_binary_op_dispatcher)
157def greater_equal(x1, x2):
158 """
159 Return (x1 >= x2) element-wise.
160
161 Unlike `numpy.greater_equal`, this comparison is performed by
162 first stripping whitespace characters from the end of the string.
163 This behavior is provided for backward-compatibility with
164 numarray.
165
166 Parameters
167 ----------
168 x1, x2 : array_like of str or unicode
169 Input arrays of the same shape.
170
171 Returns
172 -------
173 out : ndarray
174 Output array of bools.
175
176 See Also
177 --------
178 equal, not_equal, less_equal, greater, less
179 """
180 return compare_chararrays(x1, x2, '>=', True)
181
182
183@array_function_dispatch(_binary_op_dispatcher)

Callers 7

__ge__Method · 0.90
test_basic_ufuncsMethod · 0.90
__ge__Method · 0.70
masked_greater_equalFunction · 0.50
test_testUfuncs1Method · 0.50
test_testOddFeaturesMethod · 0.50

Calls 1

compare_chararraysFunction · 0.85

Tested by 4

test_basic_ufuncsMethod · 0.72
test_testUfuncs1Method · 0.40
test_testOddFeaturesMethod · 0.40