next up previous
Next: Filling a matrix with Up: A sampling of useful Previous: Multiplying matrices

Filling a vector with zeros

We can create an array (vector) with zeros using

>>> z = np.zeros(5)
>>> print(z)
[ 0.  0.  0.  0.  0.]



Carleton DeTar 2018-02-12