Sha256: 23cc933f82f7a0b7168aa46394e54971056db1b396c6bdc51ab2c7fbaa612d3b
Contents?: true
Size: 289 Bytes
Versions: 22
Compression:
Stored size: 289 Bytes
Contents
#!/usr/bin/env ruby require("gsl") v = GSL::Vector.alloc(3) n = GSL::Ntuple.alloc("test.dat", v) GSL::Rng.env_setup() r = GSL::Rng.alloc for i in 0...10000 do for j in 0...3 do v[j] = r.gaussian() end n.write end puts("Data file test.dat is created.") puts("Try project.rb.")
Version data entries
22 entries across 22 versions & 4 rubygems