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] Remove extra line when print array #59

Closed forFudan closed 2 months ago

forFudan commented 2 months ago

Currently, the __str__ method of NDArray adds an extra \n at the end of the string. This causes an extra line to be printed when print(array) is used. This PR fixes this.