MathGroup Archive 2007

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

Search the Archive

Re: MapThread over ragged arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83430] Re: MapThread over ragged arrays
  • From: Ray Koopman <koopman at sfu.ca>
  • Date: Tue, 20 Nov 2007 03:52:29 -0500 (EST)
  • References: <fhrrbf$583$1@smc.vnet.net>

In[1]:= mat1 = {{1, 2}, {2, 3, 4}, {5, 6}};
        mat2 = {{a, b}, {b, c, d}, {e, f}};

In[3]:= SetAttributes[f,Listable]

In[4]:= f[mat1,mat2]

Out[4]= {{f[1,a],f[2,b]},
         {f[2,b],f[3,c],f[4,d]},
         {f[5,e],f[6,f]}}


  • Prev by Date: Re: ordered positions (OrderedPosition?)
  • Next by Date: Solving Tanh[x]=Tanh[a]Tanh[b x + c]
  • Previous by thread: MapThread over ragged arrays
  • Next by thread: Re: MapThread over ragged arrays