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



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

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