@@ -214,14 +214,14 @@ contains
214
214
if(scale % re == 0.0_${k1}$) then
215
215
ti = scale % im * r1
216
216
tr = 0.0_${k1}$
217
- elseif (scale % im == 0.0_${k1}$) then
217
+ else if (scale % im == 0.0_${k1}$) then
218
218
tr = scale % re * r1
219
219
ti = 0.0_${k1}$
220
220
else
221
221
tr = scale % re * r1
222
222
r1 = unif_dist_rvs_0_r${k1}$( )
223
223
ti = scale % im * r1
224
- endif
224
+ end if
225
225
res = cmplx(tr, ti, kind=${k1}$)
226
226
end function unif_dist_rvs_1_${t1[0]}$${k1}$
227
227
@@ -248,14 +248,14 @@ contains
248
248
if(scale % re == 0.0_${k1}$) then
249
249
tr = loc % re
250
250
ti = loc % im + scale % im * r1
251
- elseif (scale % im == 0.0_${k1}$) then
251
+ else if (scale % im == 0.0_${k1}$) then
252
252
tr = loc % re + scale % re * r1
253
253
ti = loc % im
254
254
else
255
255
tr = loc % re + scale % re * r1
256
256
r1 = unif_dist_rvs_0_r${k1}$( )
257
257
ti = loc % im + scale % im * r1
258
- endif
258
+ end if
259
259
res = cmplx(tr, ti, kind=${k1}$)
260
260
end function unif_dist_rvs_${t1[0]}$${k1}$
261
261
@@ -318,7 +318,7 @@ contains
318
318
tmp = shiftr(dist_rand(INT_ONE), 11)
319
319
t = real(tmp * MESENNE_NUMBER, kind = ${k1}$)
320
320
res(i) = loc + scale * t
321
- enddo
321
+ end do
322
322
end function unif_dist_rvs_array_${t1[0]}$${k1}$
323
323
324
324
#:endfor
@@ -345,15 +345,15 @@ contains
345
345
if(scale % re == 0.0_${k1}$) then
346
346
tr = loc % re
347
347
ti = loc % im + scale % im * r1
348
- elseif (scale % im == 0.0_${k1}$) then
348
+ else if (scale % im == 0.0_${k1}$) then
349
349
tr = loc % re + scale % re * r1
350
350
ti = loc % im
351
351
else
352
352
tr = loc % re + scale % re * r1
353
353
tmp = shiftr(dist_rand(INT_ONE), 11)
354
354
r1 = real(tmp * MESENNE_NUMBER, kind = ${k1}$)
355
355
ti = loc % im + scale % im * r1
356
- endif
356
+ end if
357
357
res(i) = cmplx(tr, ti, kind=${k1}$)
358
358
end do
359
359
end function unif_dist_rvs_array_${t1[0]}$${k1}$
@@ -370,7 +370,7 @@ contains
370
370
371
371
if(scale == 0_${k1}$) then
372
372
res = 0.0
373
- elseif (x < loc .or. x > (loc + scale)) then
373
+ else if (x < loc .or. x > (loc + scale)) then
374
374
res = 0.0
375
375
else
376
376
res = 1. / (scale + 1_${k1}$)
@@ -389,7 +389,7 @@ contains
389
389
390
390
if(scale == 0.0_${k1}$) then
391
391
res = 0.0
392
- elseif (x <= loc .or. x >= (loc + scale)) then
392
+ else if (x <= loc .or. x >= (loc + scale)) then
393
393
res = 0.0
394
394
else
395
395
res = 1.0 / scale
@@ -410,7 +410,7 @@ contains
410
410
tr = loc % re + scale % re; ti = loc % im + scale % im
411
411
if(scale == (0.0_${k1}$,0.0_${k1}$)) then
412
412
res = 0.0
413
- elseif ((x % re >= loc % re .and. x % re <= tr) .and. &
413
+ else if ((x % re >= loc % re .and. x % re <= tr) .and. &
414
414
(x % im >= loc % im .and. x % im <= ti)) then
415
415
res = 1.0 / (scale % re * scale % im)
416
416
else
@@ -430,9 +430,9 @@ contains
430
430
431
431
if(scale == 0_${k1}$) then
432
432
res = 0.0
433
- elseif (x < loc) then
433
+ else if (x < loc) then
434
434
res = 0.0
435
- elseif (x >= loc .and. x <= (loc + scale)) then
435
+ else if (x >= loc .and. x <= (loc + scale)) then
436
436
res = real((x - loc + 1_${k1}$)) / real((scale + 1_${k1}$))
437
437
else
438
438
res = 1.0
@@ -451,9 +451,9 @@ contains
451
451
452
452
if(scale == 0.0_${k1}$) then
453
453
res = 0.0
454
- elseif (x < loc) then
454
+ else if (x < loc) then
455
455
res = 0.0
456
- elseif (x >= loc .and. x <= (loc + scale)) then
456
+ else if (x >= loc .and. x <= (loc + scale)) then
457
457
res = (x - loc) / scale
458
458
else
459
459
res = 1.0
@@ -474,22 +474,22 @@ contains
474
474
if(scale == (0.0_${k1}$,0.0_${k1}$)) then
475
475
res = 0.0
476
476
return
477
- endif
477
+ end if
478
478
r1 = x % re < loc % re
479
479
r2 = x % re > (loc % re + scale % re)
480
480
i1 = x % im < loc % im
481
481
i2 = x % im > (loc % im + scale % im)
482
482
if(r1 .or. i1) then
483
483
res = 0.0
484
- elseif ((.not. r1) .and. (.not. r2) .and. i2) then
484
+ else if ((.not. r1) .and. (.not. r2) .and. i2) then
485
485
res = (x % re - loc % re) / scale % re
486
- elseif ((.not. i1) .and. (.not. i2) .and. r2) then
486
+ else if ((.not. i1) .and. (.not. i2) .and. r2) then
487
487
res = (x % im - loc % im) / scale % im
488
- elseif ((.not. r1) .and. (.not. r2) .and. (.not. i1) .and. (.not. i2)) &
488
+ else if ((.not. r1) .and. (.not. r2) .and. (.not. i1) .and. (.not. i2)) &
489
489
then
490
490
res = (x % re - loc % re) * (x % im - loc % im) / &
491
491
(scale % re * scale % im)
492
- elseif (r2 .and. i2)then
492
+ else if (r2 .and. i2)then
493
493
res = 1.0
494
494
end if
495
495
end function unif_dist_cdf_${t1[0]}$${k1}$
0 commit comments