The local operator should hold the problem class by value, not reference
This will make it easier to transfer to the GPU, plus there is not need for possibly dangling references here.
This will make it easier to transfer to the GPU, plus there is not need for possibly dangling references here.