MCPcopy Index your code
hub / github.com/numpy/numpy / greater_equal

Function greater_equal

numpy/_core/defchararray.py:130–161  ·  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

128
129@array_function_dispatch(_binary_op_dispatcher)
130def greater_equal(x1, x2):
131 """
132 Return (x1 >= x2) element-wise.
133
134 Unlike `numpy.greater_equal`, this comparison is performed by
135 first stripping whitespace characters from the end of the string.
136 This behavior is provided for backward-compatibility with
137 numarray.
138
139 Parameters
140 ----------
141 x1, x2 : array_like of str or unicode
142 Input arrays of the same shape.
143
144 Returns
145 -------
146 out : ndarray
147 Output array of bools.
148
149 See Also
150 --------
151 equal, not_equal, less_equal, greater, less
152
153 Examples
154 --------
155 >>> import numpy as np
156 >>> x1 = np.array(['a', 'b', 'c'])
157 >>> np.char.greater_equal(x1, 'b')
158 array([False, True, True])
159
160 """
161 return compare_chararrays(x1, x2, '>=', True)
162
163
164@array_function_dispatch(_binary_op_dispatcher)

Callers 7

__ge__Method · 0.90
test_basic_ufuncsMethod · 0.90
__ge__Method · 0.85
masked_greater_equalFunction · 0.85
test_testUfuncs1Method · 0.85
test_testOddFeaturesMethod · 0.85

Calls

no outgoing calls

Tested by 4

test_basic_ufuncsMethod · 0.72
test_testUfuncs1Method · 0.68
test_testOddFeaturesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…