python in action

时间:2014-05-05 22:24:10   收藏:0   阅读:336

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

bubuko.com,布布扣

bubuko.com,布布扣

 

 

 

 

python in action,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!