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

Removing out_dtype, and minor doc fixes #85

Closed MadAlex1997 closed 1 month ago

MadAlex1997 commented 1 month ago

Removes in_dtype and out_dtype and other seemingly unnecessary cast operations.

Mojo is generally smart enough to do the correct type conversions, and having the required type parameter not set the result type seems confusing. Anyone using NuMojo will have to learn Mojo's type system, and single type declarations that can usually get implicitly determined by the compiler are both cleaner and more Pythonic anyway.

Also, I removed unused cnvrt_type functions that were unused simple wrappers around SIMD.cast.

Minor fixes to documentation added a simple test for sort, and determined our ND sort behavior does not match numpy.