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
@@ -15,7 +15,7 @@ The `stdlib_intrinsics` module provides replacements for some of the well known
15
15
16
16
#### Description
17
17
18
-
The `stdlib_sum` function can replace the intrinsic `sum` for `real`or `complex` arrays. It follows a chunked implementation which maximizes vectorization potential as well as reducing the round-off error. This procedure is recommended when summing large arrays, for repetitive summation of smaller arrays consider the classical `sum`.
18
+
The `stdlib_sum` function can replace the intrinsic `sum` for `real`, `complex`or `integer` arrays. It follows a chunked implementation which maximizes vectorization potential as well as reducing the round-off error. This procedure is recommended when summing large arrays, for repetitive summation of smaller arrays consider the classical `sum`.
19
19
20
20
#### Syntax
21
21
@@ -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`, `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:
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:
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`, `complex`or `integer` type. This argument is `intent(in)`.
82
+
`x`: 1D array of either `real`or `complex` 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
@@ -100,7 +100,7 @@ If `dim` is absent, the output is a scalar of the same `type` and `kind` as to t
100
100
101
101
#### Description
102
102
103
-
The `stdlib_dot_product` function can replace the intrinsic `dot_product` for 1D `real`or `complex` arrays. It follows a chunked implementation which maximizes vectorization potential as well as reducing the round-off error. This procedure is recommended when crunching large arrays, for repetitive products of smaller arrays consider the classical `dot_product`.
103
+
The `stdlib_dot_product` function can replace the intrinsic `dot_product` for 1D `real`, `complex`or `integer` arrays. It follows a chunked implementation which maximizes vectorization potential as well as reducing the round-off error. This procedure is recommended when crunching large arrays, for repetitive products of smaller arrays consider the classical `dot_product`.
0 commit comments