Skip to main content

Module math

Module math 

Source
Expand description

Multi-tier arithmetic for tensor network calculations

Supports three implementation tiers:

  1. Research: Arbitrary precision (optional, requires features)
  2. Portable: f64-based (default, widely supported)
  3. Hardware: Fixed-point u32/u64 (optimal for embedded/blockchain)

Modulesยง

fixed_point
Fixed-point arithmetic for blockchain
hardware
Hardware-optimized arithmetic for embedded systems (ESP32, etc.)
portable
Portable f64-based arithmetic (default)