How to solve a linear system A * X = B when B and X are matrices instead as vectors?
2 次查看(过去 30 天)
显示 更早的评论
Sovling a linear system A * X = B when X and B are matrices. If I use lsqr,then B is required to be a vector.
I could also iterate for each column of the B matrix, but that is not very computationally efficient.
Matrix A is very big, so I could not save it explicitly. I could only use a function handle to compute A * X.
0 个评论
回答(2 个)
Star Strider
2021-4-22
The lsqr function is primarily used for sparse systems. There are a number of other options for iterative solutions summarised in Iterative Methods for Linear Systems. I am not certain which (if any) of these would be appropriate to your problem.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!