Skip to content

Commit 7c6e8a4

Browse files
committed
fix specs
1 parent 4abd8d3 commit 7c6e8a4

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

doc/specs/stdlib_intrinsics.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,13 @@ Pure function.
3232
#### Argument(s)
3333

3434
`x`: 1D array of either `real` or `complex` type. This argument is `intent(in)`.
35+
3536
`mask` (optional): 1D array of `logical` values. This argument is `intent(in)`.
3637

3738
#### Output value or Result value
3839

3940
The output is a scalar of `type` and `kind` same as to that of `x`.
4041

41-
#### Example
42-
43-
```fortran
44-
{!example/math/example_intrinsics_sum.f90!}
45-
```
46-
4742
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
4843
### `fsum_kahan` function
4944

@@ -79,6 +74,7 @@ Pure function.
7974
#### Argument(s)
8075

8176
`x`: 1D array of either `real` or `complex` type. This argument is `intent(in)`.
77+
8278
`mask` (optional): 1D array of `logical` values. This argument is `intent(in)`.
8379

8480
#### Output value or Result value
@@ -88,7 +84,7 @@ The output is a scalar of `type` and `kind` same as to that of `x`.
8884
#### Example
8985

9086
```fortran
91-
{!example/math/example_intrinsics_sum.f90!}
87+
{!example/intrinsics/example_sum.f90!}
9288
```
9389

9490
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
@@ -113,18 +109,13 @@ Pure function.
113109
#### Argument(s)
114110

115111
`x`: 1D array of either `real` or `complex` type. This argument is `intent(in)`.
112+
116113
`y`: 1D array of the same type and kind as `x`. This argument is `intent(in)`.
117114

118115
#### Output value or Result value
119116

120117
The output is a scalar of `type` and `kind` same as to that of `x` and `y`.
121118

122-
#### Example
123-
124-
```fortran
125-
{!example/math/example_intrinsics_dot_duct.f90!}
126-
```
127-
128119
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
129120
### `fprod_kahan` function
130121

@@ -147,12 +138,13 @@ Pure function.
147138
#### Argument(s)
148139

149140
`x`: 1D array of either `real` or `complex` type. This argument is `intent(in)`.
141+
150142
`y`: 1D array of the same type and kind as `x`. This argument is `intent(in)`.
151143

152144
#### Output value or Result value
153145

154146
The output is a scalar of `type` and `kind` same as to that of `x` and `y`.
155147

156148
```fortran
157-
{!example/math/example_intrinsics_dot_duct.f90!}
149+
{!example/intrinsics/example_dot_product.f90!}
158150
```

0 commit comments

Comments
 (0)