Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Wolfram-native tensor-axis notation for reshaping, reducing, mapping, contracting, broadcasting, joining and splitting arrays
Contributed by: Gravifer
Einstoff provides a Wolfram-native, declarative notation for rearranging, reducing, mapping, contracting, broadcasting, joining, and splitting tensor axes. Shape descriptions use familiar Wolfram Language pattern forms at the surface and compile to a private staged representation before execution.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["Gravifer/Einstoff"]
To load the code after installation, evaluate this code:
Needs["Gravifer`Einstoff`"]
Rearrange an array by naming and reordering its axes:
| In[1]:= |
| Out[1]= |
Reduce a targeted axis while carrying the untargeted axis:
| In[2]:= |
| Out[2]= |
Contract a named axis shared by two tensors:
| In[3]:= |
| Out[3]= |
Wolfram Language Version 15.0
GNU General Public License v3.0 or later