Mojo-Numerics-and-Algorithms-group / NuMojo

NuMojo is a library for numerical computing in Mojo 🔥 similar to numpy in Python.
Apache License 2.0
86 stars 15 forks source link

[lib] Update `__eq__` method of NDArray. #63

Closed forFudan closed 2 months ago

forFudan commented 2 months ago

Update __eq__ method of NDArray.

Check whether two ndarrays are equal. The ndarrays are equal if: (1) The shapes of the ndarrays are the same. (2) The items of the ndarrays are equal.

Remove a trailing new line above the printed array.