Do matrix operations (mainly multiply and inverse) of a sparse matrix SparseMat in OpenCV.