orth(somematrix)
はMATLABに組み込まれていますが、Haskellhmatrixライブラリでは利用できないようです。
2 に答える
5
import Numeric.LinearAlgebra
orth :: Field a => Matrix a -> [Vector a]
orth m = toColumns $ fst $ qr m
またはポイントフリー
orth = toColumns . fst . qr
ウィキペディアに説明があります。
于 2012-02-21T00:18:13.907 に答える
1
おそらくこれはあなたが必要とするものです:
orth m = toColumns u
where (u,_,_) = compactSVD m
https://github.com/AlbertoRuiz/hmatrix/issues/10#issuecomment-4077403
于 2012-02-21T17:06:37.913 に答える