/usr/share/doc/ruby-gsl/examples/blas/level2.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 | #!/usr/bin/env ruby
require("gsl")
include GSL::Blas
x = GSL::Vector[1, 2, 3]
y = GSL::Vector[4, 5, 6]
A = GSL::Matrix.alloc([1, 2, 3], [4, 5, 6], [7, 8, 9])
# [28, 64, 100]
p GSL::Blas.dgemv(CblasNoTrans, 2, A, x)
p dgemv(CblasNoTrans, 2, A, x)
|