MathGroup Archive 2007

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

Search the Archive

Map vs. Table

  • To: mathgroup at
  • Subject: [mg75377] Map vs. Table
  • From: zac <replicatorzed at>
  • Date: Fri, 27 Apr 2007 05:25:00 -0400 (EDT)

Dear Group,

consider a set of data (y values):

data = Table[i*j, {i, 5}, {j, 10}]

I want to label each Integer with an x value:

label := Table[{i, #} & /@ data[[i]], {i, Length[data]}]

I've understand that list creation is much faster with Map than with
Is there an effective way to convert the Table to Map in the label
function (either with nested Map or to incorporate the Table function
into the Map)?
Would it be really faster for very large datasets than with Table?


Istvan Zachar

  • Prev by Date: FourierCosTransform
  • Next by Date: Re: minmum of a function
  • Previous by thread: Re: FourierCosTransform
  • Next by thread: Re: Map vs. Table