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