Azzera filtri
Azzera filtri

efficiency vs storage

1 visualizzazione (ultimi 30 giorni)
Jerry
Jerry il 12 Ago 2011
L=12000, I have two methods to do an optimization problem. The first method needs to store L^2 double complex numbers in total, and requires L^2 multiplications of double complex numbers in each iteration. The second method needs to store 5*L double complex numbers in total, and requires 3*L^2 multiplications of double complex numbers in each iteration. I wonder which one is better.

Risposta accettata

Titus Edelhofer
Titus Edelhofer il 12 Ago 2011
Hi,
it depends: L^2 would need about 2GB of storage. So if you have a 32 Bit machine this will definetely run into "out of memory", so the other is clearly better. On the other hand, if you happen to have a 64Bit operating system + 64 Bit MATLAB + say 8GB of memory, it's hard to say (the factor of "only" three might well be compensated by the lower time for accessing memory). My guess though will be, that the first one will be faster.
Titus

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by