Return (x1 < x2) element-wise. Unlike `numpy.greater`, 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_like of st
(x1, x2)
| 234 | |
| 235 | @array_function_dispatch(_binary_op_dispatcher) |
| 236 | def less(x1, x2): |
| 237 | """ |
| 238 | Return (x1 < x2) element-wise. |
| 239 | |
| 240 | Unlike `numpy.greater`, this comparison is performed by first |
| 241 | stripping whitespace characters from the end of the string. This |
| 242 | behavior is provided for backward-compatibility with numarray. |
| 243 | |
| 244 | Parameters |
| 245 | ---------- |
| 246 | x1, x2 : array_like of str or unicode |
| 247 | Input arrays of the same shape. |
| 248 | |
| 249 | Returns |
| 250 | ------- |
| 251 | out : ndarray |
| 252 | Output array of bools. |
| 253 | |
| 254 | See Also |
| 255 | -------- |
| 256 | equal, not_equal, greater_equal, less_equal, greater |
| 257 | """ |
| 258 | return compare_chararrays(x1, x2, '<', True) |
| 259 | |
| 260 | |
| 261 | def _unary_op_dispatcher(a): |