/usr/share/doc/ruby-gsl/examples/eigen/nonsymm.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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #!/usr/bin/env ruby
require("gsl")
m = GSL::Matrix[[1, 2], [3, 4]]
w = GSL::Eigen::Nonsymm::Workspace.alloc(2)
v = GSL::Vector::Complex.alloc(2)
#w.params(0, 1)
#p GSL::Eigen.nonsymm(m)
#p GSL::Eigen.nonsymm(m, v, w)
p m.eigen_nonsymm
#p m.eigen_nonsymm(v, w)
#p m.eigen_nonsymm_Z
#p m
=begin
Octave result:
octave:1> m = [1 2; 3 4]
m =
1 2
3 4
octave:2> eig(m)
ans =
-0.37228
5.37228
=end
|