Class: GSL::Vector::Col

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

Instance Method Summary collapse

Instance Method Details

#to_aryObject



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

def to_ary
  to_a
end

#to_gslObject



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

def to_gsl
  self
end

#to_matrixObject



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

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