How do I invert the following sparse matrix (named row_sparse_cupy below) created with the python library "cupy" using CUDA? The example code is
import cupy as cp
import numpy as np
import scipy.sparse as sp
N=100
row_sparse = sp.csr_matrix(np.identity(100))
add=np.random.standard_normal((10,10))
row_sparse[:10,:10]=add # (just creating some general non-identity matrix)
row_sparse_cupy=cp.sparse.csr_matrix(row_sparse,dtype=cp.float32)
My original problem is set up in terms of a general big sparse matrix (N=100000). My goal is to calculate the inverse on my GPU. The structure of my original matrix is of general form with a multitude of zero entries (and being invertible, of course).