Making a new matrix: 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.

23 October 2025

  • curprev 14:1714:17, 23 October 2025 Davrot talk contribs 5,162 bytes +5,162 Created page with "Making a new matrix… Questions to [mailto:davrot@uni-bremen.de David Rotermund] Using '''import numpy as np''' is the standard. == Simple example – new [https://numpy.org/doc/stable/reference/generated/numpy.zeros.html np.zeros()] == Define the size of your new matrix with a tuple, e.g.<syntaxhighlight lang="python">M = numpy.zeros((DIM_0, DIM_1, DIM_2, …))​</syntaxhighlight> === 1d === <syntaxhighlight lang="python">import numpy as np M = np.zeros((2)) prin..." Tag: Visual edit: Switched