High dimension matrix algebra
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pouya Jamali
el 16 de Nov. de 2014
Comentada: Matt J
el 1 de Feb. de 2015
Hi there,
I'm trying to solve a set of linear equations by using Matlab syntax '\'. This properly works for dimensions less than 100000-by-100000. But for higher orders it starts to produce an error regarding the lack of enough memory and for dimensions greater than one million it says maximum variable size is exceeded.
Please help me to see how can I tackle this problem. I have a 10000000-by-10000000 set of equations to solve.
0 comentarios
Respuesta aceptada
Jan
el 16 de Nov. de 2014
To store a 10000000-by-10000000 matrix you need 800TB Memory - assuming that it is full. As a rule of thumb the double size of free memory is recommended.
Do you see the problem?
4 comentarios
Matt J
el 1 de Feb. de 2015
That's what the sparse() command is for...so you don't have to allocate all the zeros occurring in your matrix.
Más respuestas (1)
Matt J
el 16 de Nov. de 2014
You may have to use pcg() or some other iterative method.
2 comentarios
Ver también
Categorías
Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!