Class: Vector

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

Instance Method Summary collapse

Instance Method Details

#to_matrixObject



2
3
4
# File 'lib/statsample/matrix.rb', line 2

def to_matrix
  ::Matrix.columns([self.to_a])
end

#to_vectorObject



5
6
7
# File 'lib/statsample/matrix.rb', line 5

def to_vector
  self
end