einops: Flexible, Powerful, and Readable Tensor Operations

Perform tensor operations using a concise yet expressive syntax inspired by the Python library of the same name. Reshape, rearrange, and combine multidimensional arrays for scientific computing, machine learning, and data analysis. Einops simplifies complex manipulations, making code more maintainable and intuitive. The original implementation is demonstrated in Rogozhnikov (2022) <https://openreview.net/forum?id=oapKSVM2bcj>.

Package details

AuthorQile Yang [cre, aut, cph] (ORCID: <https://orcid.org/0009-0005-0148-2499>)
MaintainerQile Yang <qile.yang@berkeley.edu>
LicenseMIT + file LICENSE
Version0.2.1
URL https://github.com/Qile0317/einops https://qile0317.github.io/einops/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("einops")

Try the einops package in your browser

Any scripts or data that you put into this service are public.

einops documentation built on Sept. 9, 2025, 5:29 p.m.