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

prod function always generates zeros #40

Closed forFudan closed 2 months ago

forFudan commented 2 months ago

The current prod function is not correct because it init an ndarray of zeros. Then the products will always be zeros. This pull request fix this.

Boundary check to enable _traverse_iterative to use store function without crash.