Class: Range

Inherits:
Object show all
Defined in:
lib/daru/monkeys.rb

Instance Method Summary collapse

Instance Method Details

#daru_vector(name = nil, index = nil, dtype = :array) ⇒ Object Also known as: dv


14
15
16
# File 'lib/daru/monkeys.rb', line 14

def daru_vector name=nil, index=nil, dtype=:array
  Daru::Vector.new self, name: name, index: index, dtype: dtype
end

#to_indexObject


20
21
22
# File 'lib/daru/monkeys.rb', line 20

def to_index
  Daru::Index.new to_a
end