Skip to content

Commit 60e80fa

Browse files
committed
DOC: create_diagonal: add xp param
1 parent be3664d commit 60e80fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/array_api_extra/_funcs.py

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def create_diagonal(x: Array, /, *, offset: int = 0, xp: ModuleType) -> Array:
152152
Offset from the leading diagonal (default is ``0``).
153153
Use positive ints for diagonals above the leading diagonal,
154154
and negative ints for diagonals below the leading diagonal.
155+
xp : array_namespace
156+
The standard-compatible namespace for `x`.
155157
156158
Returns
157159
-------

0 commit comments

Comments
 (0)