Pseudo inverse - out of memory
5 views (last 30 days)
Show older comments
I have got the following equation:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147705/image.png)
Where chat and λhat are vectors and (B^T*B), H, B^T*Y and 0 are block matrices. The '+' sign indicates the Moore-Penrose pseudo inverse.
The matrix of which the pseudo inverse has to taken has size 4000 x 4000 and is a sparse matrix.
I am able to use an iterative solver to find chat. However, I would like to obtain the diagonal elements of matrix C1 as well. Unfortunately I cannot use Matlab's pinv function because the matrix is too large. I also tried changing svd into svds inside the pinv function so I am able to work with sparse matrices, but then I still get the out of memory error.
Any ideas?
0 Comments
Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!