Sha256: f95a8045e431b76e4f975ea115a5419df8764816e64cf68a15a7b9c8b942acf6

Contents?: true

Size: 190 Bytes

Versions: 6

Compression:

Stored size: 190 Bytes

Contents

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

p = GSL::Permutation::alloc(10)
p.init
p.swap(4, 7)
#p p.to_a
p.print

#p p.inverse.to_a
#p p.next.to_a
#p p.next.to_a
#p p.next.to_a

p.printf("%u \n")

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gsl-2.1.0.3 examples/permutation/permutation.rb
gsl-2.1.0.2 examples/permutation/permutation.rb
gsl-2.1.0.1 examples/permutation/permutation.rb
gsl-2.1.0 examples/permutation/permutation.rb
gsl-1.16.0.6 examples/permutation/permutation.rb
rb-gsl-1.16.0.5 examples/permutation/permutation.rb