I am using cuda(cusparse) to multiply some sparse matrix. I need to set some rows( or columns) elements to be zero. Either COO or CSR format is OK. How could I do it efficiently? Is there any related functions in cusparse?
A = [1,2,0,4; 2,3,7,0; 0,7,8,5; 4,0,5,6];
set row and column 2 to zeros
Anew = [1,0,0,4; 0,0,0,0; 0,0,8,5; 4,0,5,6];