Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Processing large data in Mathematica

I'm dealing with large input arrays with Mathematica and it looks like I can't process anything bigger than (or equal to) 1024*1024 and 81*81*81. Is that normal? Should I be able to do computations on such input data? If so, how?

like image 569
Ricky Robinson Avatar asked Aug 23 '26 15:08

Ricky Robinson


1 Answers

I think that depends on what calculations you are performing.

For example, in a very modest laptop:

Clear["Global`*"];
k = 2000;
Timing[a = Table[i j + i - j, {i, k}, {j, k}];
 MatrixPlot@a]  

Takes 20 seconds.

Matrix multiplying up to 1000x1000:

f[n_] := Table[RandomInteger[{1, n}], {n}, {n}];
ListLinePlot[
 Table[{n, First@AbsoluteTiming@(#.#) &@f[n]}, {n, 100, 1000, 100}]]  

enter image description here

So, it depends heavily on what you are trying to calculate.

like image 186
Dr. belisarius Avatar answered Aug 26 '26 23:08

Dr. belisarius



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!