So I’m trying to invert a sparse array, A, using a GPU. I would either like to find the true inverse, or find the solution, x, to A*x = ones(length(x)).

Here’s the code I’ve been using:

I don’t know why x gives me numbers back, but xGPU gives NaN.

Thanks for your help