Result changes depending on whether matrix is sparse or not

Hmmm, my suggestion to use pinv is not a practical one. It’s never a good idea to compute an inverse to solve an Ax=b problem.

Is there any special reason in your application why one solution for x is better than another?

Regarding pseudo-inverse and QR, this thread is relevant.

1 Like