orth(somematrix)内置于MATLAB中,但似乎在Haskell hmatrix库中不可用。
发布于 2012-02-21 08:18:14
import Numeric.LinearAlgebra
orth :: Field a => Matrix a -> [Vector a]
orth m = toColumns $ fst $ qr m或者是免积分
orth = toColumns . fst . qrWikipedia有一个解释。
发布于 2012-02-22 01:06:38
也许这就是你所需要的:
orth m = toColumns u
where (u,_,_) = compactSVD mhttps://github.com/AlbertoRuiz/hmatrix/issues/10#issuecomment-4077403
https://stackoverflow.com/questions/9366923
复制相似问题