I have two huge matrices $A$ and $B$. I am trying to find some iterative solvers like bcg or lsqr in Matlab.
I mean if my matrix $A$ is sparse and $n\times n$ and $B$ is a column vector of size $n\times 1$, I can use lsqr and bcg to solve the equation $Ax=B$.
Now suppose I need to solve $XD=C$, so I need to calculate $CD^{-1}$ where both $C$ and $D$ are huge matrices. If I use matlab's C/D operation directly, it consumes lots of memory and crashes. Are there any iterative solvers for this operation instead of using the forward slash operator directly?
Bindividually? For exampleresult = sparse(N,N); for i = 1:N; result(:,i) = A\B(:,i); end. – Chris Taylor Oct 11 '12 at 12:06
– Emily Oct 29 '12 at 21:51X = lyap(zeros(n),D,-C);