Skip to content

Instantly share code, notes, and snippets.

@EmmanuelOga
EmmanuelOga / gslyaml.rb
Created June 24, 2011 05:43
GSL::Vector to YAML
# http://tech.natemurray.com/2007/03/custom-yaml-emitter.html
require 'gsl'
require 'yaml'
v = GSL::Vector.alloc 10
0.upto(9) do |n| v[n] = n* 10 end
class GSL::Vector