I have an array (vector, matrix) type that I use subrange on a lot. For example:
x = x + y[i:j]
Does the y[i:j]
create a temporary copy before passing the argument to the addition operator?
Thanks!
I have an array (vector, matrix) type that I use subrange on a lot. For example:
x = x + y[i:j]
Does the y[i:j]
create a temporary copy before passing the argument to the addition operator?
Thanks!