Minor corrections to tensordot documentation (#11764)

Changed some math indices formating and the format of the `axes` argument for Example 3.
This commit is contained in:
Adam Salvail 2017-07-25 23:34:56 -04:00 committed by Vijay Vasudevan
parent 62de0b9479
commit fdeb2d23dd

View File

@ -2338,8 +2338,8 @@ def tensordot(a, b, axes, name=None):
Example 2: When `a` and `b` are matrices (order 2), the case
`axes = [[1], [0]]` is equivalent to matrix multiplication.
Example 3: Suppose that \\(a_ijk\\) and \\(b_lmn\\) represent two
tensors of order 3. Then, `contract(a, b, [0], [2])` is the order 4 tensor
Example 3: Suppose that \\(a_{ijk}\\) and \\(b_{lmn}\\) represent two
tensors of order 3. Then, `contract(a, b, [[0], [2]])` is the order 4 tensor
\\(c_{jklm}\\) whose entry
corresponding to the indices \\((j,k,l,m)\\) is given by: