MathGroup Archive 2009

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

Search the Archive

Re: Shorthand for MapThread

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95041] Re: Shorthand for MapThread
  • From: yatesd at mac.com
  • Date: Sun, 4 Jan 2009 07:32:26 -0500 (EST)
  • References: <gjng5h$2kj$1@smc.vnet.net>

I don't believe there is one, other than f~MapThread~{{a,b,c},
{d,e,f}}, but I often use the following instead: f@@@Thread[{{a,b,c},
{d,e,f}} or f@@@Transpose[{{a,b,c},{d,e,f}}].
f@@@exp is shorthand for Apply[f,exp,{1}]. Sometimes your data is
naturally already in the right format and so you can use f@@@data
without the Thread or Transpose.

Regards,

Derek


  • Prev by Date: Re: Re: Re: Test for composite digit
  • Next by Date: Re: How to plot strings s_i at point {x_i,y_i} ?
  • Previous by thread: Re: Shorthand for MapThread
  • Next by thread: Help with graphics and plots - corrupted installation