MathGroup Archive 2004

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

Search the Archive

Re: Re: Outer product in mathematica


Yesterday evening I was looking ways to find out quickly if a list of  
string patterns match a list of strings or not.  Outer came handy.   
Here is a small example:

In[20]:=
lst={"actagagactagag","actagag","acta","gag"};
fragpatt={"*acta*","*tag*","*gag*"};
Outer[StringMatchQ[#1,#2]&,lst,fragpatt]

Out[22]=
{{True,True,True},{True,True,True},{True,False,False},{False,False,True} 
}

The first sublist of the Out shows how the first element of lst  
measured up to the elements of fragpatt, etc...

János
On Oct 15, 2004, at 2:45 AM, Albert Reiner wrote:

> [Jonas Sourlier <aeroswiss at gmx.net>, Thu, 14 Oct 2004 10:51:31 +0000  
> (UTC)]:
>> okay, thanks alot. Could it be that "outer product" in English means
>> only the tensor outer product, meanwhile in German "äusseres Produkt"
>> has more the sense of the antisymmetric tensor product
>> ("wedge-product")? Our professor talked only about the second one...
>
> I have often heard the term "direktes Produkt" for what Outer does.
>
> Albert.
>
>
----------------------------------------------
Trying to argue with a politician is like lifting up the head of a  
corpse.
(S. Lem: His Master Voice)


  • Prev by Date: Re: Mathematica Symbolic Toolbox for MATLAB--Version 2.0
  • Next by Date: Re: Need help with HISTOGRAM plotting
  • Previous by thread: Re: Outer product in mathematica
  • Next by thread: derivatives in cylindrical coord's, need help