不清楚,不过科学计算的话,感觉应该跟numpy有关~~
from numpy.matlib import repmat
indices = repmat(temp.T, 1, m) - repmat(temp, m, 1)
不知道是不是你想要的
地址:http://blog.sina.com.cn/s/blog_4513dde60100o6na.html
from numpy.matlib import repmat
indices = repmat(temp.T, 1, m) - repmat(temp, m, 1)
不知道是不是你想要的
地址:http://blog.sina.com.cn/s/blog_4513dde60100o6na.html

