Inner
Usage
Notes
Further Examples
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]:=
|
|