Matrix Subtraction using numpy in Python

Source code :

import numpy as np

a = np.array([(3,4),(5,10)])
b = np.array([(2,4),(4,6)])
print(a-b)

Output :

[[1 0]
 [1 4]]

Output :


                

Comments :