You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modifying vec_view will silently modify matrix, because compilers
are allowed to optimize out the multi1d copy c'tor call.
This also applies to other scenarios where a subslice of a multiXd is accessed.
The third statement provides an actual copy and does not modify matrix.
The text was updated successfully, but these errors were encountered:
Just that this is documented somewhere:
modifying
vec_view
will silently modifymatrix
, because compilersare allowed to optimize out the
multi1d
copy c'tor call.This also applies to other scenarios where a subslice of a multiXd is accessed.
The third statement provides an actual copy and does not modify
matrix
.The text was updated successfully, but these errors were encountered: