Mojo-Numerics-and-Algorithms-group / NuMojo

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

Add unsigned int alias. Add a random module and a rand function. Change some traits' name to camel case. #29

Closed forFudan closed 4 months ago

forFudan commented 4 months ago

Add unsigned int alias.

import numojo as no
no.u8  # Stands for DType.uint8

Add a random module and a rand function:numojo.core.random.rand[numojo.i8](3,2,4) returns an random array with shape 3 x 2 x 4.

Change some traits' name to camel case.