【发布时间】:2012-07-28 13:52:37
【问题描述】:
我正在尝试运行下面的代码,但是当我的矩阵超过 10,000 列时,Matlab 会冻结。我该怎么做才能解决这个问题?
X = load('iris.mtx');
[n,d] = size(X);
%X=14000x128 double
%form RBF over the data:
nms = sum(X'.^2); %nms becomes 14000x1
%here is where the crash begins, for a smaller data size, like 10000x128, this part wont freeze
K = exp(-nms'*ones(1,n) -ones(n,1)*nms + 2*X*X');
这是我必须接受的限制吗?我需要能够将它用于比我目前使用的矩阵大得多的矩阵。
【问题讨论】:
标签: matlab matrix-multiplication