Main public logs
From Master of Neuroscience Wiki
Combined display of all available logs of Master of Neuroscience Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 13:32, 17 October 2025 Davrot talk contribs created page Einstein summation (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