(self, other)
| 241 | # (which, e.g., astropy Quantity cannot usefully do). See gh-8452. |
| 242 | class MyArray(np.ndarray): |
| 243 | def __eq__(self, other): |
| 244 | return bool(np.equal(self, other).all()) |
| 245 | |
| 246 | def __ne__(self, other): |
| 247 | return not self == other |