Skip to content

Commit d3ed5bf

Browse files
authored
Fixes issue with rvs_normal where it lacks the elemental property
as noted in [#662 (comment)]
1 parent b9c9b91 commit d3ed5bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stdlib_stats_distribution_normal.fypp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ contains
160160

161161

162162
#:for k1, t1 in REAL_KINDS_TYPES
163+
impure elemental &
163164
function rvs_norm_${t1[0]}$${k1}$(loc, scale) result(res)
164165
!
165166
! Normal random variate (loc, scale)
@@ -178,6 +179,7 @@ contains
178179

179180

180181
#:for k1, t1 in CMPLX_KINDS_TYPES
182+
impure elemental &
181183
function rvs_norm_${t1[0]}$${k1}$(loc, scale) result(res)
182184
!
183185
! Normally distributed complex. The real part and imaginary part are &

0 commit comments

Comments
 (0)