This repository was archived by the owner on May 27, 2021. It is now read-only.

Description
I have an application in which an (expensive) linear operator is implemented on the GPU. Methods such as GMRES from IterativeSolvers attempt to apply the operator to a RHS which is a view of another larger array. Since there are no copy! methods for views, a naive implementation fails.
In the case of GMRES (and one would imagine most performance critical applications), the views will be an appropriate sized column of a matrix, thus the memory is linear and the copy operation could presumably be performed without too much pain.
I am not that familiar with the SubArray architecture - would it be to implement a copy! method which accepts a view, so long as the indices are linear and the dimensions correct?