Multiplication of gigantic matrices
1 view (last 30 days)
Show older comments
carlos g on 6 Mar 2023
Commented: Steven Lord on 7 Mar 2023
I am trying to multiply two gigantic matrices: [1585152 90]*[90 1585152]. MATLAB runs out of memory. Is there any workaround for this?
Steven Lord on 7 Mar 2023
What were you hoping to do with this extremely large matrix? There may be alternate approaches that don't require nearly so much memory. For example, if you were hoping to solve a system using the normal equations don't do that. Use mldivide, \ or one of the iterative methods for solving a system.
Allen on 7 Mar 2023
You can use datastores and tall arrays to work with large amounts of data. See references to both.
Bruno Luong on 7 Mar 2023
See John's comment, it need 18.7 Tb to store it, without looking to time to work with huge matrix.
Explicit multiplication is a bad idea that will lead pratically to nowhere.
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!