Post by Orxan Shibliyev I used KSP to solve Ax=b successfully but I would like to solve Ax=b only for certain rows. How can I do this?
It's not actually significantly cheaper no matter what you do. You can save a little on non-leading constant factors for some methods (basically permuting the factorization so you only need a partial back-solve). This is usually negligible.