@@ -218,14 +218,14 @@ contains
218
218
if(scale % re == 0.0_${k1}$) then
219
219
ti = scale % im * r1
220
220
tr = 0.0_${k1}$
221
- elseif (scale % im == 0.0_${k1}$) then
221
+ else if (scale % im == 0.0_${k1}$) then
222
222
tr = scale % re * r1
223
223
ti = 0.0_${k1}$
224
224
else
225
225
tr = scale % re * r1
226
226
r1 = unif_dist_rvs_0_r${k1}$( )
227
227
ti = scale % im * r1
228
- endif
228
+ end if
229
229
res = cmplx(tr, ti, kind=${k1}$)
230
230
end function unif_dist_rvs_1_${t1[0]}$${k1}$
231
231
@@ -253,14 +253,14 @@ contains
253
253
if(scale % re == 0.0_${k1}$) then
254
254
tr = loc % re
255
255
ti = loc % im + scale % im * r1
256
- elseif (scale % im == 0.0_${k1}$) then
256
+ else if (scale % im == 0.0_${k1}$) then
257
257
tr = loc % re + scale % re * r1
258
258
ti = loc % im
259
259
else
260
260
tr = loc % re + scale % re * r1
261
261
r1 = unif_dist_rvs_0_r${k1}$( )
262
262
ti = loc % im + scale % im * r1
263
- endif
263
+ end if
264
264
res = cmplx(tr, ti, kind=${k1}$)
265
265
end function unif_dist_rvs_${t1[0]}$${k1}$
266
266
@@ -323,7 +323,7 @@ contains
323
323
tmp = shiftr(dist_rand(INT_ONE), 11)
324
324
t = real(tmp * MESENNE_NUMBER, kind = ${k1}$)
325
325
res(i) = loc + scale * t
326
- enddo
326
+ end do
327
327
end function unif_dist_rvs_array_${t1[0]}$${k1}$
328
328
329
329
#:endfor
@@ -351,15 +351,15 @@ contains
351
351
if(scale % re == 0.0_${k1}$) then
352
352
tr = loc % re
353
353
ti = loc % im + scale % im * r1
354
- elseif (scale % im == 0.0_${k1}$) then
354
+ else if (scale % im == 0.0_${k1}$) then
355
355
tr = loc % re + scale % re * r1
356
356
ti = loc % im
357
357
else
358
358
tr = loc % re + scale % re * r1
359
359
tmp = shiftr(dist_rand(INT_ONE), 11)
360
360
r1 = real(tmp * MESENNE_NUMBER, kind = ${k1}$)
361
361
ti = loc % im + scale % im * r1
362
- endif
362
+ end if
363
363
res(i) = cmplx(tr, ti, kind=${k1}$)
364
364
end do
365
365
end function unif_dist_rvs_array_${t1[0]}$${k1}$
@@ -376,7 +376,7 @@ contains
376
376
377
377
if(scale == 0_${k1}$) then
378
378
res = 0.0
379
- elseif (x < loc .or. x > (loc + scale)) then
379
+ else if (x < loc .or. x > (loc + scale)) then
380
380
res = 0.0
381
381
else
382
382
res = 1. / (scale + 1_${k1}$)
@@ -395,7 +395,7 @@ contains
395
395
396
396
if(scale == 0.0_${k1}$) then
397
397
res = 0.0
398
- elseif (x < loc .or. x > (loc + scale)) then
398
+ else if (x < loc .or. x > (loc + scale)) then
399
399
res = 0.0
400
400
else
401
401
res = 1.0 / scale
@@ -416,8 +416,8 @@ contains
416
416
tr = loc % re + scale % re; ti = loc % im + scale % im
417
417
if(scale == (0.0_${k1}$,0.0_${k1}$)) then
418
418
res = 0.0
419
- elseif ((x % re > loc % re .and. x % re < tr) .and. &
420
- (x % im > loc % im .and. x % im < ti)) then
419
+ else if ((x % re >= loc % re .and. x % re <= tr) .and. &
420
+ (x % im >= loc % im .and. x % im <= ti)) then
421
421
res = 1.0 / (scale % re * scale % im)
422
422
else
423
423
res = 0.0
@@ -436,9 +436,9 @@ contains
436
436
437
437
if(scale == 0_${k1}$) then
438
438
res = 0.0
439
- elseif (x < loc) then
439
+ else if (x < loc) then
440
440
res = 0.0
441
- elseif (x >= loc .and. x <= (loc + scale)) then
441
+ else if (x >= loc .and. x <= (loc + scale)) then
442
442
res = real((x - loc + 1_${k1}$)) / real((scale + 1_${k1}$))
443
443
else
444
444
res = 1.0
@@ -457,9 +457,9 @@ contains
457
457
458
458
if(scale == 0.0_${k1}$) then
459
459
res = 0.0
460
- elseif (x < loc) then
460
+ else if (x < loc) then
461
461
res = 0.0
462
- elseif (x >= loc .and. x <= (loc + scale)) then
462
+ else if (x >= loc .and. x <= (loc + scale)) then
463
463
res = (x - loc) / scale
464
464
else
465
465
res = 1.0
@@ -480,22 +480,22 @@ contains
480
480
if(scale == (0.0_${k1}$,0.0_${k1}$)) then
481
481
res = 0.0
482
482
return
483
- endif
483
+ end if
484
484
r1 = x % re < loc % re
485
485
r2 = x % re > (loc % re + scale % re)
486
486
i1 = x % im < loc % im
487
487
i2 = x % im > (loc % im + scale % im)
488
488
if(r1 .or. i1) then
489
489
res = 0.0
490
- elseif ((.not. r1) .and. (.not. r2) .and. i2) then
490
+ else if ((.not. r1) .and. (.not. r2) .and. i2) then
491
491
res = (x % re - loc % re) / scale % re
492
- elseif ((.not. i1) .and. (.not. i2) .and. r2) then
492
+ else if ((.not. i1) .and. (.not. i2) .and. r2) then
493
493
res = (x % im - loc % im) / scale % im
494
- elseif ((.not. r1) .and. (.not. r2) .and. (.not. i1) .and. (.not. i2)) &
495
- then
496
- res = (x % re - loc % re) * (x % im - loc % im) / &
494
+ else if ((.not. r1) .and. (.not. r2) .and. (.not. i1) .and. (.not. i2)) &
495
+ then
496
+ res = (x % re - loc % re) * (x % im - loc % im) / &
497
497
(scale % re * scale % im)
498
- elseif (r2 .and. i2)then
498
+ else if (r2 .and. i2)then
499
499
res = 1.0
500
500
end if
501
501
end function unif_dist_cdf_${t1[0]}$${k1}$
0 commit comments