Sha256: f1a65b1e9a2087c00161ce49eca5e1248eb1f2cd2d2854699075d6a2692b8193

Contents?: true

Size: 285 Bytes

Versions: 22

Compression:

Stored size: 285 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
include GSL
include GSL::Linalg

m = GSL::Matrix[[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]]

b = Vector.alloc(1, 2, 3, 4)
p HH.solve(m, b)

p m.HH_solve(b)

m.HH_svx(b)
p b

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
gsl-2.1.0.3 examples/linalg/HH.rb
gsl-2.1.0.2 examples/linalg/HH.rb
gsl-2.1.0.1 examples/linalg/HH.rb
gsl-2.1.0 examples/linalg/HH.rb
gsl-1.16.0.6 examples/linalg/HH.rb
rb-gsl-1.16.0.5 examples/linalg/HH.rb
rb-gsl-1.16.0.4 examples/linalg/HH.rb
rb-gsl-1.16.0.3 examples/linalg/HH.rb
rb-gsl-1.16.0.3.rc1 examples/linalg/HH.rb
gsl-nmatrix-1.15.3.2 examples/linalg/HH.rb
gsl-nmatrix-1.15.3.1 examples/linalg/HH.rb
rb-gsl-1.16.0.2 examples/linalg/HH.rb
rb-gsl-1.16.0.1 examples/linalg/HH.rb
rb-gsl-1.16.0 examples/linalg/HH.rb
rb-gsl-1.15.3.2 examples/linalg/HH.rb
rb-gsl-1.15.3.1 examples/linalg/HH.rb
blackwinter-gsl-1.15.3.2 examples/linalg/HH.rb
gsl-nmatrix-1.15.3.0 examples/linalg/HH.rb
gsl-1.15.3 examples/linalg/HH.rb
gsl-1.14.7 examples/linalg/HH.rb