(self, other)
| 176 | # (which, e.g., astropy Quantity cannot usefully do). See gh-8452. |
| 177 | class MyArray(np.ndarray): |
| 178 | def __eq__(self, other): |
| 179 | return bool(np.equal(self, other).all()) |
| 180 | |
| 181 | def __ne__(self, other): |
| 182 | return not self == other |