Ricky Robinson
Ricky Robinson

Reputation: 22933

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?

Upvotes: 3

Views: 593

Answers (1)

Dr. belisarius
Dr. belisarius

Reputation: 61056

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.

Upvotes: 3

Related Questions