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_intrinsics.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Pure function.
33
33
34
34
#### Argument(s)
35
35
36
-
`x`: N-D array of either `real`or `complex` type. This argument is `intent(in)`.
36
+
`x`: N-D array of either `real`, `complex`or `integer` type. This argument is `intent(in)`.
37
37
38
38
`dim` (optional): scalar of type `integer` with a value in the range from 1 to n, where n equals the rank of `x`.
39
39
@@ -48,7 +48,7 @@ If `dim` is absent, the output is a scalar of the same `type` and `kind` as to t
48
48
49
49
#### Description
50
50
51
-
The `stdlib_sum_kahan` function can replace the intrinsic `sum` for `real`or `complex` arrays. It follows a chunked implementation which maximizes vectorization potential complemented by an `elemental` kernel based on the [kahan summation](https://doi.org/10.1145%2F363707.363723) strategy to reduce the round-off error:
51
+
The `stdlib_sum_kahan` function can replace the intrinsic `sum` for `real`, `complex`or `integer` arrays. It follows a chunked implementation which maximizes vectorization potential complemented by an `elemental` kernel based on the [kahan summation](https://doi.org/10.1145%2F363707.363723) strategy to reduce the round-off error:
52
52
53
53
```fortran
54
54
elemental subroutine kahan_kernel_<kind>(a,s,c)
@@ -79,7 +79,7 @@ Pure function.
79
79
80
80
#### Argument(s)
81
81
82
-
`x`: 1D array of either `real`or `complex` type. This argument is `intent(in)`.
82
+
`x`: 1D array of either `real`, `complex`or `integer` type. This argument is `intent(in)`.
83
83
84
84
`dim` (optional): scalar of type `integer` with a value in the range from 1 to n, where n equals the rank of `x`.
85
85
@@ -116,7 +116,7 @@ Pure function.
116
116
117
117
#### Argument(s)
118
118
119
-
`x`: 1D array of either `real`or `complex` type. This argument is `intent(in)`.
119
+
`x`: 1D array of either `real`, `complex`or `integer` type. This argument is `intent(in)`.
120
120
121
121
`y`: 1D array of the same type and kind as `x`. This argument is `intent(in)`.
0 commit comments