Crate rapl

source ·
Expand description

Note: rapl is in early development and is not optimized for performance, is not recommended for production applications. rapl is computing Rust library that provides a simple way of working with N-dimensional array, along with a wide range of mathematical functions to manipulate them. It takes inspiration from NumPy and APL, with the primary aim of achieving maximum ergonomics and user-friendliness while maintaining generality. Our goal is to make Rust scripting as productive as possible, and make Rust a real option when it comes to numerical computing and data science. Check out the examples. Out of the box rapl provides features like co-broadcasting, rank type checking, native complex number support, among many others:

use rapl::*;
fn main() {
     let a = Ndarr::from([1, 2, 3]);
     let b = Ndarr::from([[1, 2, 3], [4, 5, 6], [7, 8, 9]]);
     let r = a + b - 1;
     assert_eq!(r, Ndarr::from([[1, 3, 5], [4, 6, 8], [7, 9, 11]]));
}

Re-exports

Modules

Structs

  • The type-level bit 0.
  • The type-level bit 1.
  • Main struct of N Dimensional generic array. The shape is denoted by the shape array where the length is the Rank of the Ndarray the actual values are stored in a flattened state in a rank 1 array.
  • The terminating type for UInt; it always comes after the most significant bit. UTerm by itself represents zero, which is aliased to U0.

Traits

Functions

Type Definitions