Skip to content

Summa 1.0.0

Latest

Choose a tag to compare

@n4sd4q n4sd4q released this 10 Nov 22:22
· 1 commit to main since this release

Summa 1.0.0 — fast Einstein summation for the Wolfram Language.

The first public release. You write a tensor contraction as on paper, with the syntax of numpy.einsum ("ij,jk->ik"),
and Summa works out how to compute it: the cheapest order of the pairwise contractions (an exact search up to eight
tensors, greedy beyond) and the kernel of each — BLAS, batched or broadcasting — with no transposes, reshapes or
intermediate arrays by hand. An index may appear in any number of tensors: diagonals, traces, hyperedges, batch indices.
EinsumPath gives the cost of the order, EinsumFunction precompiles an einsum for loops, EinsumDiagram and
EinsumTree draw the tensor network and the contraction tree. 735 tests; every result is checked against numpy.einsum,
and the optimal order against an exhaustive search.

Install it with

PacletInstall["https://github.com/n4sd4q/Summa/releases/download/v1.0.0/Summa-1.0.0.paclet"]
Needs["Summa`"]

Website: https://n4sd4q.github.io/Summa/ · the showcase and the manual are attached as PDFs; the guided tour comes with
the paclet (NotebookOpen[PacletObject["Summa"]["AssetLocation", "Examples"]]). Requires Mathematica 12.1 or later.