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:
parent
62de0b9479
commit
fdeb2d23dd
@ -2338,8 +2338,8 @@ def tensordot(a, b, axes, name=None):
|
|||||||
Example 2: When `a` and `b` are matrices (order 2), the case
|
Example 2: When `a` and `b` are matrices (order 2), the case
|
||||||
`axes = [[1], [0]]` is equivalent to matrix multiplication.
|
`axes = [[1], [0]]` is equivalent to matrix multiplication.
|
||||||
|
|
||||||
Example 3: Suppose that \\(a_ijk\\) and \\(b_lmn\\) represent two
|
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
|
tensors of order 3. Then, `contract(a, b, [[0], [2]])` is the order 4 tensor
|
||||||
\\(c_{jklm}\\) whose entry
|
\\(c_{jklm}\\) whose entry
|
||||||
corresponding to the indices \\((j,k,l,m)\\) is given by:
|
corresponding to the indices \\((j,k,l,m)\\) is given by:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user