Closed h-larsson closed 1 year ago
flatten returns a copy whereas ravel returns a view.¹ I checked all expressions and think they are ok for using views instead of copies, but please double check.
flatten
¹ https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flatten.html https://numpy.org/doc/stable/reference/generated/numpy.ravel.html
flatten
returns a copy whereas ravel returns a view.¹ I checked all expressions and think they are ok for using views instead of copies, but please double check.¹ https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flatten.html https://numpy.org/doc/stable/reference/generated/numpy.ravel.html