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