Browse Source

updates

master
Joerg Marks 2 years ago
parent
commit
caba112806
  1. 25
      notebooks/01_intro_ex_1a_sol.ipynb
  2. BIN
      notebooks/horse.npy
  3. 2
      slides/01_intro_python.md

25
notebooks/01_intro_ex_1a_sol.ipynb
File diff suppressed because one or more lines are too long
View File

BIN
notebooks/horse.npy

Binary file not shown.

2
slides/01_intro_python.md

@ -126,7 +126,7 @@ See the different versions of the same page in the following
print(myA[2]) # 11 access 3. element print(myA[2]) # 11 access 3. element
myA[0] = 12 # set 1. element to 12 myA[0] = 12 # set 1. element to 12
myB = np.array([[1,5],[7,9]]) # create rank 2 array myB = np.array([[1,5],[7,9]]) # create rank 2 array
myB.shape # (2,2)
myB.shape # (2,2) (rows,columns)
print(myB[0,0],myB[0,1],myB[1,1]) # 1 5 9 print(myB[0,0],myB[0,1],myB[1,1]) # 1 5 9
myC = np.arange(6) # create rank 1 set to 0 - 5 myC = np.arange(6) # create rank 1 set to 0 - 5
myC.reshape(2,3) # change rank to (2,3) myC.reshape(2,3) # change rank to (2,3)

Loading…
Cancel
Save