Hi,
I was wondering if it is possible to drop the i-th element of a sparse vector x
(i.e., setting it to zero) in-place. I am aware that you can do something like x[i]=0.0; dropzeros!(x)
, but I was wondering if there is a more efficient way or a built-in function for it. Besides, what is the equivalent for empty!(..)
in the case of sparse arrays?
Thanks!