Return (x1 != x2) element-wise. Unlike `numpy.not_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_like of
(x1, x2)
| 129 | |
| 130 | @array_function_dispatch(_binary_op_dispatcher) |
| 131 | def not_equal(x1, x2): |
| 132 | """ |
| 133 | Return (x1 != x2) element-wise. |
| 134 | |
| 135 | Unlike `numpy.not_equal`, this comparison is performed by first |
| 136 | stripping whitespace characters from the end of the string. This |
| 137 | behavior is provided for backward-compatibility with 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, greater_equal, less_equal, greater, less |
| 152 | """ |
| 153 | return compare_chararrays(x1, x2, '!=', True) |
| 154 | |
| 155 | |
| 156 | @array_function_dispatch(_binary_op_dispatcher) |