0

http://social.msdn.microsoft.com/Forums/vstudio/en-US/7e952c45-2494-4650-aa61-89d5ea21f1f3/how-to-use-qr-decomposition-of-extreme-optimization

如何使用极限优化的 QR 分解

没有为此对象定义无参数构造函数。

let TwelvePalace : float[,] = Array2D.zeroCreate 4 3

TwelvePalace.[0,0] <- 1.0;
TwelvePalace.[0,1] <- 2.0;
TwelvePalace.[0,2] <- 3.0;

TwelvePalace.[1,0] <- 4.0;
TwelvePalace.[1,1] <- 5.0;
TwelvePalace.[1,2] <- 6.0;

TwelvePalace.[2,0] <- 7.0;
TwelvePalace.[2,1] <- 8.0;
TwelvePalace.[2,2] <- 9.0;

TwelvePalace.[3,0] <- 10.0;
TwelvePalace.[3,1] <- 11.0;
TwelvePalace.[3,2] <- 12.0;

let mutable iii = DenseMatrix.Create(TwelvePalace)
let QRProvider : QRDecomposition = iii.GetQRDecomposition()

let Q : DenseMatrix = QRProvider.OrthogonalFactor.ToDenseMatrix() // error here
let R : DenseMatrix = QRProvider.UpperTriangularFactor.ToDenseMatrix()
4

0 回答 0