1. introduction
from numpy import *
random.rand(4,4)
#array to matrix
randMat=mat(randon.rand(4,4))
#matrix inverse
IvrandMat=randMat.I
#indentity matrix
eye(4) # 4*4 identity matrix
randMat*IvrandMat
2. knn
2023-11-25 08:51:04
1. introduction
from numpy import *
random.rand(4,4)
#array to matrix
randMat=mat(randon.rand(4,4))
#matrix inverse
IvrandMat=randMat.I
#indentity matrix
eye(4) # 4*4 identity matrix
randMat*IvrandMat
2. knn