Skip to content

Commit 3dd576f

Browse files
committed
Add specification link and remove unused variables
1 parent b19d447 commit 3dd576f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/stdlib_math.fypp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#:include "common.fypp"
22
#:set IR_KINDS_TYPES = INT_KINDS_TYPES + REAL_KINDS_TYPES
33
#:set RC_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES
4-
! #:set ICR_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES + INT_KINDS_TYPES
54

65
module stdlib_math
76
use stdlib_kinds, only: int8, int16, int32, int64, sp, dp, qp
@@ -31,6 +30,7 @@ module stdlib_math
3130
!! Create rank 1 array of linearly spaced elements
3231
!! If the number of elements is not specified, create an array with size 100. If n is a negative value,
3332
!! return an array with size 0. If n = 1, return end
33+
!!([Specification](../page/specs/stdlib_math.html#description))
3434
#:for k1, t1 in RC_KINDS_TYPES
3535
#:set RName = rname("linspace_default", 1, t1, k1)
3636
module function ${RName}$(start, end) result(res)
@@ -60,8 +60,12 @@ module stdlib_math
6060
!! If the number of elements is not specified, create an array with size 100. If n is a negative value,
6161
!! return an array with size 0. If n = 1, return end. When dealing with integers as the `start` and `end`
6262
!! paramaters, the return type is always a double precision real.
63+
!!
64+
!!([Specification](../page/specs/stdlib_math.html#description))
6365
#:for k1, t1 in INT_KINDS_TYPES
6466
#:set RName = rname("linspace_default", 1, t1, k1)
67+
#! The interface for INT_KINDS_TYPES cannot be combined with RC_KINDS_TYPES
68+
#! because the output for integer types is always a real with dp.
6569
module function ${RName}$(start, end) result(res)
6670
${t1}$, intent(in) :: start
6771
${t1}$, intent(in) :: end

0 commit comments

Comments
 (0)