Skip to content

einsum

0.2.0Package record

Einstein Summation

3packages depend
6.2Kdownloads / year
93.6%test coverage
11/13flavors OK

Overview

About

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.

Changes in 0.2.0
  • 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

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 5.2 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 298 wordsVignettesNoNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
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

6.2K
CRAN downloads in the past year
Rank #5,856 · ~17/day · ~521/mo
Daily download trend is not available in this view yet.
49330 days
1.4K90 days
6.2K1 year
Compare downloads with other packages →
Also on410 r2u3 autocran2.6K conda_forge

Repository

12Stars
2Forks
0Open issues
0Open PRs
2Releases
70Commits
2Commit identities
70 commits · Last activity 2026-07-08 · 0% stars, 30d
Responsiveness
How these are sampled
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

2024-11-15 · 112026-07-07 · 12
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-08 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-04-05
    Named in .Rbuildignore: CLAUDE.md
    Commits: at least 7 crediting it in the message
From outside contributors
  • Claude Code
    Pull requests: 3 from outside contributors, first on 2026-04-05, 3 from forks
Models named in its commits
  • Claude Opus 4.67 commits · Apr to Jul 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

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.

Depends (0)
none
Imports (3)
LinkingTo (1)
Suggests (2)
Enhances (0)
none
Reverse dependencies
3direct
1indirect
Imports 3
Depends, Imports or LinkingTo, most downloaded first

People & History

People (2)
Author, Maintainer since 0.1.0 (2021)
Author · added in 0.2.0
Releases (3)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-07-09 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.2
    record
    2023-08-28 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.0
    record
    2021-05-18
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 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")
Ahlmann-Eltze, C., & Tsuyuzaki, K. (2026). einsum: Einstein Summation (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for einsum version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy