Target += u for the vector u

Dear all,

A very quick question just to be sure. When I write:

vector[2] lps = ....;
target += lps;

Is it equivalent to target += sum(lps)? By other words, I don’t need to write the sum in my code.

Thank you in advance,
Andrei

Yes

1 Like

Many thanks

1 Like