Skip to content
/ numru Public

A high-performance scientific computation library.

License

Notifications You must be signed in to change notification settings

chinmer/numru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numru

ci crates.io documentation

A high-performance scientific computation library written in Rust.

Get Started

This getting started guide might change and should not be a source of absolute truth. Check the unit tests if you want to stay up to date with how things should be done. Some APIs will definetely be changed in the future.

[dependencies]
numru = "0.1.0"

And a simple code:

fn main() {
  let mut a = array![1, 2, 3];
  a.zeros();
  println!("{:?}", a);
}

Features

Numru will offer a variety of different numerical operations and data types. It is intended to be a fundamental library for scientific computing with Rust.

Supported Data Types

  • i64
  • f64

Supported Operations

Operation NumPy Equivalent Numru Equivalent
Zeros Array np.zeros((2, 3)) 🚧
Ones Array np.ones((2, 3)) 🚧
Arange np.arange(start, stop, step) 🚧
Linspace np.linspace(start, stop, num) 🚧
Mean np.mean(a) 🚧
Min np.min(a) 🚧
Max np.max(a) 🚧
Exp np.exp(a) 🚧
Log np.log(a) 🚧
Sigmoid 1 / (1 + np.exp(-a)) 🚧
Dot Product np.dot(a, b) 🚧
Reshape a.reshape((2, 3)) 🚧
Concatenate np.concatenate([a,b], axis=0) 🚧
Element-wise Add a + b 🚧
Element-wise Sub a - b 🚧
Element-wise Mul a * b 🚧
Element-wise Div a / b 🚧
Fancy indexing np.ones((2,3))[0, :] 🚧
Fancy flipping np.array([1,2,3])[::-1] 🚧

License

The MIT License.

About

A high-performance scientific computation library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages