Einstein Summation
Overview
The summation notation suggested by Einstein (1916) doi:10.1002/andp.19163540702 is a concise mathematical notation that implicitly sums over repeated indices of n-dimensional arrays. Many ordinary matrix operations (e.g. transpose, matrix multiplication, scalar product, 'diag()', trace etc.) can be written using Einstein notation. The notation is particularly convenient for expressing operations on arrays with more than two dimensions because the respective operators ('tensor products') might not have a standardized name.
- Optimize
einsum()via BLAS matrix multiply and greedy pairwise contraction for 3+ tensor equations. - Optimize
einsum_generator()to emit pairwise C++ code for 3+ tensor equations instead of a single loop nest. - Refactor shared equation parsing into
einsum_parse.R. - Update GitHub Actions workflows to current runners and actions.
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespace in Imports field not imported from: ‘mathjaxr’ All declared Imports should be used.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 2includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 46
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/const-ae/einsum on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-08 · The repository has a site deploy workflow
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-04-05Named in .Rbuildignore: CLAUDE.mdCommits: at least 7 crediting it in the message
- Claude CodePull requests: 3 from outside contributors, first on 2026-04-05, 3 from forks
- Claude Opus 4.67 commits · Apr to Jul 2026
Dependencies
Installing einsum adds 3 packages (2 with compiled code, 4.9 MB of source tarballs). Heaviest: mathjaxr 3.0 MB, Rcpp 1.8 MB, glue 127 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.22023-08-28 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.1.02021-05-18
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-05-18
- Total releases
- 3 / 5 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 25 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("einsum")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.