Skip to content

Commit bd667d0

Browse files
committed
One more change to eye, more descriptive positional arguments
1 parent c5f92ea commit bd667d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/API_specification/creation_functions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,19 @@ Returns an uninitialized array with the same `shape` as an input array `x`.
136136
- an array having the same shape as `x` and containing uninitialized data.
137137

138138
(function-eye)=
139-
### eye(N, M=None, /, *, k=0, dtype=None, device=None)
139+
### eye(n_rows, n_cols=None, /, *, k=0, dtype=None, device=None)
140140

141141
Returns a two-dimensional array with ones on the `k`th diagonal and zeros elsewhere.
142142

143143
#### Parameters
144144

145-
- **N**: _int_
145+
- **n_rows**: _int_
146146

147147
- number of rows in the output array.
148148

149-
- **M**: _Optional\[ int ]_
149+
- **n_cols**: _Optional\[ int ]_
150150

151-
- number of columns in the output array. If `None`, the default number of columns in the output array is `N`. Default: `None`.
151+
- 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

153153
- **k**: _Optional\[ int ]_
154154

0 commit comments

Comments
 (0)