Skip to content

Commit e1a85fb

Browse files
authored
add NaN spec to rvs_normal
1 parent fa4758f commit e1a85fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/specs/stdlib_stats_distribution_normal.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ Elemental function (passing both `loc` and `scale`).
3636

3737
`loc`: optional argument has `intent(in)` and is a scalar of type `real` or `complex`.
3838

39-
`scale`: optional argument has `intent(in)` and is a scalar of type `real` or `complex`.
39+
`scale`: optional argument has `intent(in)` and is a positive scalar of type `real` or `complex`.
4040

4141
`array_size`: optional argument has `intent(in)` and is a scalar of type `integer`.
4242

4343
`loc` and `scale` arguments must be of the same type.
4444

4545
### Return value
4646

47-
The result is a scalar or rank-1 array, with a size of `array_size`, and as the same type of `scale` and `loc`.
47+
The result is a scalar or rank-1 array, with a size of `array_size`, and the same type as `scale` and `loc`. If `scale` is non-positive, the result is `NaN`.
4848

4949
### Example
5050

@@ -88,7 +88,7 @@ All three arguments must have the same type.
8888

8989
### Return value
9090

91-
The result is a scalar or an array, with a shape conformable to the arguments, and of the same type as the input arguments. If `scale` is non-positive, the result is `NaN`.
91+
The result is a scalar or an array, with a shape conformable to the arguments, and the same type as the input arguments. If `scale` is non-positive, the result is `NaN`.
9292

9393
### Example
9494

@@ -134,7 +134,7 @@ All three arguments must have the same type.
134134

135135
### Return value
136136

137-
The result is a scalar or an array, with a shape conformable to arguments, as the same type of input arguments. If `scale` is non-positive, the result is `NaN`.
137+
The result is a scalar or an array, with a shape conformable to arguments, as the same type as the input arguments. If `scale` is non-positive, the result is `NaN`.
138138

139139
### Example
140140

0 commit comments

Comments
 (0)