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)
| 128 | |
| 129 | @array_function_dispatch(_binary_op_dispatcher) |
| 130 | def 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) |
no outgoing calls
searching dependent graphs…