@@ -424,7 +424,7 @@ end function logspace_1_iint32_n_ibase
424
424
! >
425
425
! > `arange` creates a one-dimensional `array` of the `integer/real` type
426
426
! > with fixed-spaced values of given spacing, within a given interval.
427
- ! > ([Specification](../page/specs/stdlib_math.html#arange))
427
+ ! > ([Specification](../page/specs/stdlib_math.html#arange-function ))
428
428
interface arange
429
429
pure module function arange_r_sp(start, end, step) result(result)
430
430
real (sp), intent (in ) :: start
@@ -461,7 +461,7 @@ end function arange_i_int64
461
461
! > Version: experimental
462
462
! >
463
463
! > `arg` computes the phase angle in the interval (-π,π].
464
- ! > ([Specification](../page/specs/stdlib_math.html#arg))
464
+ ! > ([Specification](../page/specs/stdlib_math.html#arg-function ))
465
465
interface arg
466
466
procedure :: arg_sp
467
467
procedure :: arg_dp
@@ -470,7 +470,7 @@ end function arange_i_int64
470
470
! > Version: experimental
471
471
! >
472
472
! > `argd` computes the phase angle of degree version in the interval (-180.0,180.0].
473
- ! > ([Specification](../page/specs/stdlib_math.html#argd))
473
+ ! > ([Specification](../page/specs/stdlib_math.html#argd-function ))
474
474
interface argd
475
475
procedure :: argd_sp
476
476
procedure :: argd_dp
@@ -479,14 +479,14 @@ end function arange_i_int64
479
479
! > Version: experimental
480
480
! >
481
481
! > `argpi` computes the phase angle of circular version in the interval (-1.0,1.0].
482
- ! > ([Specification](../page/specs/stdlib_math.html#argpi))
482
+ ! > ([Specification](../page/specs/stdlib_math.html#argpi-function ))
483
483
interface argpi
484
484
procedure :: argpi_sp
485
485
procedure :: argpi_dp
486
486
end interface argpi
487
487
488
488
! > Returns a boolean scalar/array where two scalar/arrays are element-wise equal within a tolerance.
489
- ! > ([Specification](../page/specs/stdlib_math.html#is_close))
489
+ ! > ([Specification](../page/specs/stdlib_math.html#is_close-function ))
490
490
interface is_close
491
491
elemental module logical function is_close_rsp(a, b, rel_tol, abs_tol, equal_nan) result(close )
492
492
real (sp), intent (in ) :: a, b
@@ -513,7 +513,7 @@ end function is_close_cdp
513
513
! > Version: experimental
514
514
! >
515
515
! > Returns a boolean scalar where two arrays are element-wise equal within a tolerance.
516
- ! > ([Specification](../page/specs/stdlib_math.html#all_close))
516
+ ! > ([Specification](../page/specs/stdlib_math.html#all_close-function ))
517
517
interface all_close
518
518
logical pure module function all_close_1_rsp(a, b, rel_tol, abs_tol, equal_nan) result(close )
519
519
real (sp), intent (in ) :: a(:), b(:)
@@ -600,7 +600,7 @@ end function all_close_4_cdp
600
600
! > Version: experimental
601
601
! >
602
602
! > Computes differences between adjacent elements of an array.
603
- ! > ([Specification](../page/specs/stdlib_math.html#diff))
603
+ ! > ([Specification](../page/specs/stdlib_math.html#diff-function ))
604
604
interface diff
605
605
pure module function diff_1_sp(x, n, prepend, append) result(y)
606
606
real (sp), intent (in ) :: x(:)
@@ -745,17 +745,18 @@ elemental function argd_sp(z) result(result)
745
745
complex (sp), intent (in ) :: z
746
746
real (sp) :: result
747
747
748
- result = merge (0.0_sp , atan2 (z% im, z% re), z == ( 0 .0_sp, 0.0_sp )) &
749
- * 180 .0_sp/ PI_sp
748
+ result = merge (0.0_sp , atan2 (z% im, z% re)* 180 .0_sp/ PI_sp, &
749
+ z == ( 0 .0_sp, 0.0_sp ))
750
750
751
751
end function argd_sp
752
752
753
753
elemental function argpi_sp (z ) result(result)
754
754
complex (sp), intent (in ) :: z
755
755
real (sp) :: result
756
756
757
- result = merge (0.0_sp , atan2 (z% im, z% re), z == (0.0_sp , 0.0_sp )) &
758
- / PI_sp
757
+ result = merge (0.0_sp , atan2 (z% im, z% re)/ PI_sp, &
758
+ z == (0.0_sp , 0.0_sp ))
759
+
759
760
760
761
end function argpi_sp
761
762
elemental function arg_dp (z ) result(result)
@@ -770,17 +771,18 @@ elemental function argd_dp(z) result(result)
770
771
complex (dp), intent (in ) :: z
771
772
real (dp) :: result
772
773
773
- result = merge (0.0_dp , atan2 (z% im, z% re), z == ( 0 .0_dp, 0.0_dp )) &
774
- * 180 .0_dp/ PI_dp
774
+ result = merge (0.0_dp , atan2 (z% im, z% re)* 180 .0_dp/ PI_dp, &
775
+ z == ( 0 .0_dp, 0.0_dp ))
775
776
776
777
end function argd_dp
777
778
778
779
elemental function argpi_dp (z ) result(result)
779
780
complex (dp), intent (in ) :: z
780
781
real (dp) :: result
781
782
782
- result = merge (0.0_dp , atan2 (z% im, z% re), z == (0.0_dp , 0.0_dp )) &
783
- / PI_dp
783
+ result = merge (0.0_dp , atan2 (z% im, z% re)/ PI_dp, &
784
+ z == (0.0_dp , 0.0_dp ))
785
+
784
786
785
787
end function argpi_dp
786
788
0 commit comments