Class: GSL::Vector::Col

Inherits:
Object show all
Defined in:
lib/statsample/matrix.rb

Instance Method Summary collapse

Instance Method Details

#to_aryObject


74
75
76
# File 'lib/statsample/matrix.rb', line 74

def to_ary
  to_a
end

#to_gslObject


78
79
80
# File 'lib/statsample/matrix.rb', line 78

def to_gsl
  self
end

#to_matrixObject


70
71
72
# File 'lib/statsample/matrix.rb', line 70

def to_matrix
::Matrix.columns([self.size.times.map {|i| self[i]}])
end