Sha256: 9c0777668fdf8b8051ffcd814b862e9561fb23d2e5635e7fc4e0ce9a2a51d847

Contents?: true

Size: 289 Bytes

Versions: 22

Compression:

Stored size: 289 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")

include GSL::Eigen

m = GSL::Matrix::Complex.alloc(2, 2)
m.set(0, 1, [0, -1])
m.set(1, 0, [0, 1])
p m

val, vec = m.eigen_hermv
p val
p vec.unpack

m2 = GSL::Matrix.alloc([1, 0, 0], [0, 0, 1], [0, 1, 0])
val, vec = m2.eigen_symmv
p val
p vec.unpack




Version data entries

22 entries across 22 versions & 4 rubygems

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