You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/base/eye/README.md
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
# eye
22
22
23
-
> Create a two-dimensional array with ones on the kth diagonal and zeros elsewhere
23
+
> Create a two-dimensional ndarray with ones on the kth diagonal and zeros elsewhere
24
24
25
25
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
26
26
@@ -42,23 +42,20 @@ var eye = require( '@stdlib/ndarray/base/eye' );
42
42
43
43
#### eye( dtype, rows, cols, k, order )
44
44
45
-
Creates a two-dimensional array with ones on the kth diagonal and zeros elsewhere.
45
+
Returns a two-dimensional ndarray with ones on the kth diagonal and zeros elsewhere.
@@ -80,8 +77,8 @@ The function accepts the following arguments:
80
77
81
78
## Notes
82
79
83
-
- If the provided [data type][@stdlib/ndarray/dtypes] is complex, the function returns an ndarray whose kth diagonal is filled with complex numbers whose real component equals one and imaginary component equals zero
84
-
- If `k` is greater than the number of columns or less than the number of negative rows, the function returns an array filled with zeros
80
+
- If the provided [data type][@stdlib/ndarray/dtypes] is complex, the function returns an ndarray whose kth diagonal is filled with complex numbers whose real component equals one and imaginary component equals zero.
81
+
- If `k` is greater than the number of columns or less than the number of negative rows, the function returns an ndarray filled with zeros.
85
82
86
83
</section>
87
84
@@ -99,11 +96,11 @@ The function accepts the following arguments:
99
96
var eye =require( '@stdlib/ndarray/base/eye' );
100
97
var ndarray2array =require( '@stdlib/ndarray/to-array' );
0 commit comments