Mathematica 9 is now available

Outer

Usage

Outer[f,  ,  , ... ] gives the generalized outer product of the  , forming all possible combinations of the lowest-level elements in each of them, and feeding them as arguments to f.
Outer[f,  ,  , ... , n] treats as separate elements only sublists at level n in the  .
Outer[f,  ,  , ... ,  ,  , ... ] treats as separate elements only sublists at level  in the corresponding  .


Notes

• Example: Outer[f, a,b , x,y ]LongRightArrow .
Outer[Times,  ,  ] gives an outer product.
• The result of applying Outer to the tensors  and  is the tensor  with elements f[ , ]. Applying Outer to two tensors of ranks  and  gives a tensor of rank  .
• The heads of all  must be the same, but need not necessarily be List.
• The  need not necessarily be cuboidal arrays.
• The specifications  of levels must be positive integers, Infinity.
• If only a single level specification is given, it is assumed to apply to all the  . If there are several  , but fewer than the number of  , the lowest-level elements in the remaining  will be used.
Outer can be used on SparseArray objects, returning a SparseArray object when possible.
• See also: Tuples, Inner, Distribute, Cross.
• New in Version 1; modified in 3.
• Advanced Documentation.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.