Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13932

Insufficient memory "General::nomem:" using Tuples

From Iván Lazaro <gaminster@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Insufficient memory "General::nomem:" using Tuples
Date 2013-03-26 08:05 +0000
Message-ID <kirkrt$at6$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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!

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Insufficient memory "General::nomem:" using Tuples Iván Lazaro <gaminster@gmail.com> - 2013-03-26 08:05 +0000
  Re: Insufficient memory "General::nomem:" using Tuples Ray Koopman <koopman@sfu.ca> - 2013-03-27 23:00 +0000
  Re: Insufficient memory "General::nomem:" using Tuples Iván Lazaro <gaminster@gmail.com> - 2013-03-30 08:06 +0000

csiph-web