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:
- Network System: Computation graph representation with Network, NetworkGraph, and execution strategies
- Data Storage: Flexible DataTensor enum over DenseTensor and SparseTensor with complex number support
symbolicaIntegration: Parsing from symbolica expressions with automatic structure recognition- Execution Engine: Multiple strategies for network evaluation with automatic index matching
- 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.