Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 MATLAB 中进行优化以计算条件数,如下所示:
s = svd(H, 0); cond = max(s) ./ min(s);
非常耗时,尤其是对于大型H矩阵。我正在寻找近似但快速的东西。
H
您正在计算所有奇异值并丢弃除其中两个以外的所有奇异值。你可以试试这个:
largestS = svds(H,1); %largest singular value smallestS = svds(H,1,0); %smallest singular value cond = largestS/smallestS