MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: building a list containing elements f(i,j)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71073] Re: [mg71045] building a list containing elements f(i,j)
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Wed, 8 Nov 2006 06:12:11 -0500 (EST)
  • References: <200611060752.CAA08745@smc.vnet.net>

On Nov 6, 2006, at 2:52 AM, xarnaudx at gmail.com wrote:

>
> hi,
> i want to construct a list of the form:
> { f[1,1], ... f[n,m] }
> So the list contains elements of the form f[i,j] with i ranging from 0
> to n, and j from 0 to somebound[i].
>
> What would be the most elegant way to this?

Flatten[Table[f[i,j],{i,0,n},{j,0,somebound[i]}],1]

Regards,

Ssezi


  • Prev by Date: Re: really simple question
  • Next by Date: Re: building a list containing elements f(i,j)
  • Previous by thread: Re: building a list containing elements f(i,j)
  • Next by thread: Re: building a list containing elements f(i,j)