Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Insufficient memory "General::nomem:" using Tuples
Replies: 1   Last Post: Mar 30, 2013 4:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Iván Lazaro

Posts: 34
Registered: 6/18/07
Insufficient memory "General::nomem:" using Tuples
Posted: Mar 26, 2013 4:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all!

I've encounter a weird behavior today using Mathematica 9 under Linux.

I'm defining a list of available modes

num = 15;
maxModes = ConstantArray[2, num];

and then trying to organize them in all possible tuples

lst=Tuples[Range[0, #] & /@ Join[maxModes - 1, maxModes - 1]];

I expect a BIG number of outcomes, but then I'm just removing some
(almost all) of them from the list:

lst1=DeleteCases[Map[If[Total@Take[#, num] != Total@Take[#, {num + 1, 2 num}],
sym, #] &,lst], _Symbol];

The problem is that the computation doesn't finish building the
tuples. I'm getting the output "General::nomem: The current
computation was aborted because there was insufficient memory
available to complete the computation."

Is there a way to avoid this?

Thanks in advance!




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.