my calculations lead me to have a matrix with dimensions of ((4^14),14) , but matlab said that out of memory !! .. What can I do ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
my calculations lead me to have a matrix with dimensions of ((4^14),14) , but matlab said that out of memory !! .. What can I do ?
Respuestas (1)
Steven Lord
el 25 de Mayo de 2017
Assuming your matrix is a real full double matrix, that requires a contiguous block of just over 30 GB worth of memory to store one copy of that matrix. In order to do anything with it, you'd need at least two or three copies of it in memory. Does your machine have 90 GB of memory?
Even if you did have that much memory, I'm guessing you're going to want to process each of your 4^14 rows in turn. If you did that at a rate of 1 row per second, you would be looking at:
>> years(seconds(4^14))
ans =
8.5064
eight and a half years of processing. So I agree with Stephen: change your algorithm. If you describe what you're trying to do in more detail, someone may be able to suggest an alternative approach that would get you an answer before November 2025.
0 comentarios
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!