numrs-core

Crates.ionumrs-core
lib.rsnumrs-core
version0.1.19
created_at2025-12-13 22:26:46.090601+00
updated_at2025-12-14 14:28:54.698099+00
descriptionA high-performance numerical computing library with multi-backend dispatch (SIMD, BLAS/MKL, WebGPU) and zero-cost abstractions
homepagehttps://numrs.dev
repositoryhttps://github.com/rjaguiluz/numrs
max_upload_size
id1983501
size1,308,027
(rjaguiluz)

documentation

https://numrs.dev/doc

README

numrs — core library

NumRs is an experimental, high-performance numerical & Deep Learning Engine framework for Rust, inspired by NumPy and PyTorch.

This project is structured as a collection of specialized modules, each with its own specific responsibility. This README serves as a high-level index to the detailed documentation for each component.

Architecture Overview

NumRs is built on two main layers:

  1. Numerical Engine: Handles arrays, types, and raw execution (SIMD/BLAS).
  2. Machine Learning Framework: Built on top of the engine, providing autograd and neural networks.
graph TD
    NumRs[NumRs Core]
    
    subgraph Engine["Numerical Engine"]
        Array[Link: src/array]
        Ops[Link: src/ops]
        Backend[Link: src/backend]
    end
    
    subgraph ML["ML Framework"]
        Autograd[Link: src/autograd]
        NN[NN Modules]
    end
    
    NumRs --> Engine
    NumRs --> ML
    Autograd --> Ops
    Ops --> Backend
    Ops --> Array
    Backend --> Array

📚 Ecosystem Documentation

Select your preferred language to view the specific documentation:

Component Language Documentation
NumRs Core 🦀 Rust View Rust Docs
NumRs C 🇨 C / C++ View C ABI Docs
NumRs Node 🟢 Node.js View JS Docs
NumRs Wasm 🕸️ WebAssembly View Wasm Docs
NumRs Py 🐍 Python View Python Docs
NumRs R 📐 R View R Docs

Module Documentation (Internal internals)

Detailed architecture documentation for numrs-core developers:

📦 src/array

The Data Layer. Defines Array<T>, DynArray (dynamic typing), and the Type Promotion system.

🧮 src/ops

The User API. Contains the definitions for all mathematical operations (add, matmul, sum, etc.).

⚙️ src/backend

The Execution Engine. Manages the Zero-Cost Dispatch System and interfaces with hardware accelerators (MKL, BLIS, Accelerate, SIMD).

🧠 src/autograd

The ML Engine. Implements Tensor for Reverse Mode Automatic Differentiation, Neural Network layers, and Optimizers.

Quick Start

# Build with auto-detected optimizations (ASICS/BLAS)
cargo build --release

For detailed examples, see the examples/ directory.

License

AGPL-3.0-only

Commit count: 0

cargo fmt