updates
This commit is contained in:
parent
309a94a86b
commit
caba112806
File diff suppressed because one or more lines are too long
BIN
notebooks/horse.npy
Normal file
BIN
notebooks/horse.npy
Normal file
Binary file not shown.
@ -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…
Reference in New Issue
Block a user