Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cf76219

Browse files
committed
fix documentation
1 parent 11fb555 commit cf76219

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎doc/specs/stdlib_intrinsics.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The `stdlib_intrinsics` module provides replacements for some of the well known
1515

1616
#### Description
1717

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`.
1919

2020
#### Syntax
2121

@@ -48,7 +48,7 @@ If `dim` is absent, the output is a scalar of the same `type` and `kind` as to t
4848

4949
#### Description
5050

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:
5252

5353
```fortran
5454
elemental subroutine kahan_kernel_<kind>(a,s,c)
@@ -79,7 +79,7 @@ Pure function.
7979

8080
#### Argument(s)
8181

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)`.
8383

8484
`dim` (optional): scalar of type `integer` with a value in the range from 1 to n, where n equals the rank of `x`.
8585

@@ -100,7 +100,7 @@ If `dim` is absent, the output is a scalar of the same `type` and `kind` as to t
100100

101101
#### Description
102102

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`.
104104

105105
#### Syntax
106106

‎src/stdlib_intrinsics.fypp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module stdlib_intrinsics
6464
!! This interface provides standard conforming call for sum of elements of any rank.
6565
!! The 1-D base implementation follows a chunked approach combined with a kahan kernel for optimizing performance and increasing accuracy.
6666
!! The `N-D` interfaces calls upon the `(N-1)-D` implementation.
67-
!! Supported data types include `real`, `complex` and `integer`.
67+
!! Supported data types include `real`and `complex`.
6868
!!
6969
#:for k, t, s in R_KINDS_TYPES + C_KINDS_TYPES
7070
pure module function stdlib_sum_kahan_1d_${s}$(a) result(s)
@@ -127,7 +127,7 @@ module stdlib_intrinsics
127127
!!
128128
!! compute the dot_product of rank 1 arrays.
129129
!! The implementation follows a chunked approach combined with a kahan kernel for optimizing performance and increasing accuracy.
130-
!! Supported data types include `real`, `complex` and `integer`.
130+
!! Supported data types include `real`and `complex`.
131131
!!
132132
#:for k, t, s in R_KINDS_TYPES + C_KINDS_TYPES
133133
pure module function stdlib_dot_product_kahan_${s}$(a,b) result(p)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /