Einstein summation: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 October 2025

  • curprev 16:5016:50, 17 October 2025 Davrot talk contribs 8,431 bytes −10 No edit summary Tag: Visual edit
  • curprev 13:3213:32, 17 October 2025 Davrot talk contribs 8,441 bytes +8,441 Created page with "== Top == Questions to [mailto:davrot@uni-bremen.de David Rotermund] == Examples == <math display="block">b = \sum_i a_{i,i}</math><syntaxhighlight lang="python">import numpy as np a = np.arange(0, 25).reshape(5, 5) print(a) print(a.shape) # -> (5, 5) print(np.einsum("ii", a)) # -> 60 print(np.einsum(a, [0, 0])) # -> 60 print(np.einsum(a, [0, 0], [])) # -> 60</syntaxhighlight>Output:<syntaxhighlight lang="python">[[ 0 1 2 3 4] [ 5 6 7 8 9] [10 11 12 13 14..." Tag: Visual edit