Mathematica 9 is now available

Inner

Usage

Inner[f,  ,  , g]Dot的一般化,在这儿 f 起乘法和g 起加法的作用。


Notes

• 例如: Inner[f, a,b , x,y ,g]LongRightArrow .
Inner[f,  a,b , c,d  , x,y ,g]LongRightArrow .
• 如同 Dot一样, Inner有效的将第二个张量的第一个指标和第一个张量的最后的指标进行比较。把Inner用到一个秩为 的张量和秩为  的张量给出一个秩为 的张量。
Inner[f,  ,  ]gPlus
Inner[f,  ,  , g, n] 将第一个张量的指标 n 和第二个张量的第一个指标进行比较。
  的头必须相同,但未必是List.
• 参见 Mathematica 全书: 2.2.10 and 节 3.7.11.
• 同时参见: Outer, Thread, MapThread, ListCorrelate.
Further Examples

Here is another way (beside Dot) to get the dot product of two vectors.

In[1]:=  

Out[1]=

This is a generalized inner product.

In[2]:=  

Out[2]=

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

In[3]:=  

In[4]:=  

In[5]:=  

Out[5]=

In[6]:=  

Out[6]=



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.