Sha256: ec3dcdf66571b5702ecd9abcf787901f2663be279b0f47215c764272bdcd492f

Contents?: true

Size: 415 Bytes

Versions: 22

Compression:

Stored size: 415 Bytes

Contents

#!/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

Version data entries

22 entries across 22 versions & 4 rubygems

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