Skip to content

Commit be6d7c5

Browse files
authored
disallow k=None for the eye function (#278)
1 parent 77a921a commit be6d7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/API_specification/creation_functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Returns a two-dimensional array with ones on the `k`th diagonal and zeros elsewh
150150

151151
- number of columns in the output array. If `None`, the default number of columns in the output array is equal to `n_rows`. Default: `None`.
152152

153-
- **k**: _Optional\[ int ]_
153+
- **k**: _int_
154154

155155
- index of the diagonal. A positive value refers to an upper diagonal, a negative value to a lower diagonal, and `0` to the main diagonal. Default: `0`.
156156

0 commit comments

Comments
 (0)