Class: Hash

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


26
27
28
# File 'lib/daru/monkeys.rb', line 26

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