/usr/share/doc/ruby-gsl/examples/linalg/chol_narray.rb is in ruby-gsl 2.1.0.3+dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/env ruby
require("gsl")
include GSL
include Linalg
m = NArray[[4.0, 2], [2, 3]]
c = Cholesky.decomp(m)
puts "decomp ->"
p c
b = NArray[1.0, 2]
puts "solve ->"
p Cholesky.solve(c, b) # Expected [-0.125, 0.75]
b = NArray[1.0, 2]
Cholesky.svx(c, b)
puts "svx ->"
p b
|