#!/usr/bin/env ruby
require("gsl")
class SubMatrix < GSL::Matrix::Int
def initialize(*arg)
# p *arg
super(*arg)
@foo = 2
end
def whatever
@foo
end
end
m = SubMatrix.alloc(1..4, 2, 2)
p m.class
#p m.info
#m.print
p m.whatever