This commit is contained in:
Joerg Marks 2023-04-07 13:55:41 +02:00
parent 309a94a86b
commit caba112806
3 changed files with 19 additions and 8 deletions

File diff suppressed because one or more lines are too long

BIN
notebooks/horse.npy Normal file

Binary file not shown.

View File

@ -126,7 +126,7 @@ See the different versions of the same page in the following
print(myA[2]) # 11 access 3. element
myA[0] = 12 # set 1. element to 12
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
myC = np.arange(6) # create rank 1 set to 0 - 5
myC.reshape(2,3) # change rank to (2,3)