Class: Range

Inherits:
Object
  • 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



50
51
52
# File 'lib/daru/monkeys.rb', line 50

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

#to_indexObject



56
57
58
# File 'lib/daru/monkeys.rb', line 56

def to_index
  Daru::Index.new self.to_a
end