spenso

Crates.iospenso
lib.rsspenso
version0.6.0
created_at2024-05-20 10:27:44.338484+00
updated_at2026-01-14 18:22:17.815621+00
descriptionA tensor (n-dim array) network, iterating, and contraction (using automatic abstract index matching) library.
homepage
repositoryhttps://github.com/alphal00p/spenso
max_upload_size
id1245577
size1,381,545
developers (github:alphal00p:developers)

documentation

https://docs.rs/spenso/latest/spenso/

README

logo

Documentation crates.io Build Status codecov Ask DeepWiki

The spenso crate is the foundational tensor manipulation library that provides tensor network representation, automatic index matching, data storage, and execution capabilities. It handles the core mathematical operations on tensors with abstract indices, enabling automatic contraction and simplification of tensor expressions.

The spenso library provides:

  1. Network System: Computation graph representation with Network, NetworkGraph, and execution strategies
  2. Data Storage: Flexible DataTensor enum over DenseTensor and SparseTensor with complex number support
  3. symbolica Integration: Parsing from symbolica expressions with automatic structure recognition
  4. Execution Engine: Multiple strategies for network evaluation with automatic index matching
  5. Type-Safe Abstractions: Rich trait system separating structure from data

One of the nicest features of the network, is that it can be parsed from a symbolica expression directly, allowing for seamless integration between symbolic manipulation and concrete tensor evaluation.

Commit count: 443

cargo fmt