Sha256: 29525fa1291c995a1942f3c798f6d9179eb1ff5f91176844437c7aea6cf0260c
Contents?: true
Size: 292 Bytes
Versions: 4
Compression:
Stored size: 292 Bytes
Contents
#!/usr/bin/env ruby require("gsl") require 'narray' include GSL m = NMatrix[[0.18, 0.60, 0.57, 0.96], [0.41, 0.24, 0.99, 0.58], [0.14, 0.30, 0.97, 0.66], [0.51, 0.13, 0.19, 0.85]] qr, tau = Linalg::QR.decomp(m) p qr, tau b = NVector[1.0, 2, 3, 4] p Linalg::QR.solve(qr, tau, b)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gsl-2.1.0.3 | examples/linalg/QR_solve_narray.rb |
gsl-2.1.0.2 | examples/linalg/QR_solve_narray.rb |
gsl-2.1.0.1 | examples/linalg/QR_solve_narray.rb |
gsl-2.1.0 | examples/linalg/QR_solve_narray.rb |