Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Map vs. Table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75377] Map vs. Table
  • From: zac <replicatorzed at gmail.com>
  • 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
Table.
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?

thanks

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