efficiency vs storage

1 次查看(过去 30 天)
Jerry
Jerry 2011-8-12
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.

采纳的回答

Titus Edelhofer
Titus Edelhofer 2011-8-12
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by