Skip to content

Files

Latest commit

41b7b59 · Jan 26, 2018

History

History
This branch is 23 commits behind csc-training/hpc-python:master.

reference-copy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 26, 2018

Investigate the behavior of the statements below by looking at the values of the arrays a and b after assignments:

a = np.arange(5)
b = a
b[2] = -1
b = a[:]
b[1] = -1
b = a.copy()
b[0] = -1