MathGroup Archive 2007

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

Search the Archive

Re: MapThread over ragged arrays


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