We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tensordot
1 parent 5288076 commit 6136b9bCopy full SHA for 6136b9b
1 file changed
spec/2025.12/migration_guide.md
@@ -176,8 +176,10 @@ return np.dot(c, b)
176
The first step should be as simple as assigning `np` namespace to a dedicated
177
namespace variable. The convention in the ecosystem is to name it `xp`. Then
178
making sure that each method and function call is something that Array API
179
-supports is vital. `dot` is present in the NumPy's API but the standard doesn't
180
-support it. Let's use `tensordot` instead - both NumPy and the standard define it:
+supports is vital. `dot` is present in the NumPy's API but the standard
+doesn't support it. For the sake of simplicity let's assume both `c` and `b`
181
+are `ndim=2`, therefore we select `tensordot` instead - both NumPy and the
182
+standard define it:
183
184
```python
185
import numpy as np
0 commit comments