f# - How to use QR decomposition of Extreme optimization -
how use qr decomposition of extreme optimization
no parameterless constructor defined object.
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()
Comments
Post a Comment