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: doc/specs/stdlib_linalg.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,19 +121,13 @@ This is an `intent(in)` argument.
121
121
`dim2`: Shall be a scalar of default type `integer`.
122
122
This is an `intent(in)` and `optional` argument.
123
123
124
-
#### Note
125
-
126
-
Because of `huge(integer :: i) = 2147483647`, the dimensional maximum length of array created by the `eye` function is `2147483647`.
127
-
128
124
### Return value
129
125
130
-
Return the identity matrix, i.e. a square matrix with ones on the main diagonal and zeros elsewhere. The return value is of type `integer`.
126
+
Return the identity matrix, i.e. a matrix with ones on the main diagonal and zeros elsewhere. The return value is of type `integer`.
131
127
132
128
#### Warning
133
129
134
-
If the array that receives the return value of the `eye` function is of `real/complex` type, conversion from `integer` type to `real/complex` type will occur.
135
-
136
-
Just as `Fortran` is a strongly typed statically compiled language, be careful with the following statements:
130
+
Since the result of `eye` is of `integer` type, one should be careful about using it in arithmetic expressions. For example:
0 commit comments