Class: Hash

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

Instance Method Summary collapse

Instance Method Details

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


62
63
64
# File 'lib/daru/monkeys.rb', line 62

def daru_vector index=nil, dtype=:array
  Daru::Vector.new self.values[0], name: self.keys[0], index: index, dtype: dtype
end