Sha256: 917296d2fe14df9e3d2b36d6926eec6678881971125d4f3564121f9e58c31edc

Contents?: true

Size: 276 Bytes

Versions: 18

Compression:

Stored size: 276 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
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

18 entries across 18 versions & 4 rubygems

Version Path
gsl-1.16.0.6 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0.5 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0.4 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0.3 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0.3.rc1 examples/linalg/QR_solve_narray.rb
gsl-nmatrix-1.15.3.2 examples/linalg/QR_solve_narray.rb
gsl-nmatrix-1.15.3.1 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0.2 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0.1 examples/linalg/QR_solve_narray.rb
rb-gsl-1.16.0 examples/linalg/QR_solve_narray.rb
rb-gsl-1.15.3.2 examples/linalg/QR_solve_narray.rb
rb-gsl-1.15.3.1 examples/linalg/QR_solve_narray.rb
blackwinter-gsl-1.15.3.2 examples/linalg/QR_solve_narray.rb
gsl-nmatrix-1.15.3.0 examples/linalg/QR_solve_narray.rb
gsl-1.15.3 examples/linalg/QR_solve_narray.rb
gsl-1.14.7 examples/linalg/QR_solve_narray.rb
gsl-1.14.6 examples/linalg/QR_solve_narray.rb
gsl-1.14.5 examples/linalg/QR_solve_narray.rb