It is a special matrix, because when we multiply by it, the original is unchanged:
Let prove A*I = A in Python:
import numpy as npResult:
from scipy import linalg
A = np.array([[13,9,7],[8,7,4],[6,4,0]])
B = np.array([[1,0,0],[0,1,0],[0,0,1]])
print(A.dot(B))
[[13 9 7]And then I*A = A ?
[ 8 7 4]
[ 6 4 0]]
import numpy as npResult:
from scipy import linalg
A = np.array([[1,0,0],[0,1,0],[0,0,1]])
B = np.array([[13,9,7],[8,7,4],[6,4,0]])
print(A.dot(B))
[[13 9 7]
[ 8 7 4]
[ 6 4 0]]
Orz, the result really same.
Reference :
https://www.mathsisfun.com/algebra/matrix-multiplying.html
No comments :
Post a Comment