It may be worth mentioning that .view doesn’t change or copy the underlying data in any way, it just changes the strides of the view mechanism.
Hence, calling .view is an extremely fast operation.
It may be worth mentioning that .view doesn’t change or copy the underlying data in any way, it just changes the strides of the view mechanism.
Hence, calling .view is an extremely fast operation.