Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Lists and Matrices / Structure Manipulation /

Further Examples: Inner

Here are two vectors.

In[1]:=

In[2]:=

This gives the scalar product of v1 and v2.

In[3]:=

Out[3]=

This does the same thing.

In[4]:=

Out[4]=

Here is a generalized inner product.

In[5]:=

Out[5]=

This gives the inner product of two tensors and shows their dimensions.

In[6]:=

In[7]:=

In[8]:=

Out[8]=

In[9]:=

Out[9]=

This defines the function repeat which uses the list multiplicities to repeat the elements from alist.

In[10]:=

In[11]:=

Out[11]=

This defines the function cartesianInclude which gives those sublists in aa that are in the cartesian product of the sublists of bb.

In[12]:=

In[13]:=

In[14]:=

In[15]:=

Out[15]=

In[16]:=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: