Method: Daru::Vector#clone_structure

Defined in:
lib/daru/vector.rb

#clone_structureObject

Copies the structure of the vector (i.e the index, size, etc.) and fills all all values with nils.



1423
1424
1425
# File 'lib/daru/vector.rb', line 1423

def clone_structure
  Daru::Vector.new(([nil]*size), name: @name, index: @index.dup)
end