Method: Daru::Accessors::NMatrixWrapper#delete_at

Defined in:
lib/daru/accessors/nmatrix_wrapper.rb

#delete_at(index) ⇒ Object

:nocov:



58
59
60
61
62
63
# File 'lib/daru/accessors/nmatrix_wrapper.rb', line 58

def delete_at index
  arry = @data.to_a
  arry.delete_at index
  @data = NMatrix.new [(2*@size-1)], arry, dtype: @nm_dtype
  @size -= 1
end