I currently solve Ax=b equation two times.
where A is sparse matrix NxN
x, b are vectors of size N. (I have b1 and b2)
I want to reduce times by solving both of them in one shot using cusparse functions.
so what I though is to build from the 2 b's I have, one matrix of size Nx2, and solve it with A as the equation AX=B can do.
- Is it theoretically right?
- which cusparse function should I use?
please pay attention I'm working with sparse matrix and not dense matrix.
Thanks!