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 / Matrix Operations /

Further Examples: Outer

Outer combines each element from one list with each element of another. This gives all possible pairs from the two lists.

In[1]:=

Out[1]=

You can also combine elements from more than two lists.

In[2]:=

Out[2]=

This evaluates f, g, and h at x and y.

In[3]:=

Out[3]=

The function ff combines elements of the sublists of a nested list.

In[4]:=

In[5]:=

Out[5]=

The outer product of a tensor and a tensor is a tensor.

In[6]:=

Out[6]=

In[7]:=

Out[7]=

Giving Outer additional numerical arguments treats multidimensional tensors as if they were more shallow. Here the two first­level entries, {a,b} and {c,d}, of tensor1 are combined with {1,2}, {3,4}, {5,6} and so on, which are the six second­level entries of tensor2.

In[8]:=

Out[8]=

Here is one way to define the Kronecker product of two square matrices. This loads the LinearAlgebra`MatrixManipulation` package.

In[9]:=

This defines the Kronecker product.

In[10]:=

Here are two square matrices.

In[11]:=

Out[11]//MatrixForm=

In[12]:=

Out[12]//MatrixForm=

Here is their Kronecker product.

In[13]:=

Out[13]//MatrixForm=

In[14]:=



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


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