File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,10 @@ return np.dot(c, b)
176176The first step should be as simple as assigning ` np ` namespace to a dedicated
177177namespace variable. The convention in the ecosystem is to name it ` xp ` . Then
178178making 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:
179+ supports is vital. ` dot ` is present in the NumPy's API but the standard
180+ 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:
181183
182184``` python
183185import numpy as np
You can’t perform that action at this time.
0 commit comments