Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Re: to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105375] Re: [mg105353] Re: to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Mon, 30 Nov 2009 06:10:29 -0500 (EST)
  • References: <heqev0$1lm$1@smc.vnet.net> <200911291010.FAA16226@smc.vnet.net>
  • Reply-to: drmajorbob at yahoo.com

Transpose@Outer[Compose, {f, g}, {a, b, c}]

{{f[a], g[a]}, {f[b], g[b]}, {f[c], g[c]}}

Bobby

On Sun, 29 Nov 2009 04:10:18 -0600, <SHuisman at giganews.com> wrote:

> Or maybe faster because there is not need to transpose:
>
> Through[{f, g}[#]] & /@ {a, b, c}
>
>


-- 
DrMajorBob at yahoo.com


  • Prev by Date: Non-negative Matrix Factorization
  • Next by Date: Re: Re: Permanent Computation Efficiency
  • Previous by thread: Re: to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
  • Next by thread: distorting an image