linspace Interface

public interface linspace

Create rank 1 array of linearly spaced elements If the number of elements is not specified, create an array with size 100. If n is a negative value, return an array with size 0. If n = 1, return an array whose only element is end (Specification)

When dealing with integers as the start and end parameters, the return type is always a real(dp).


Contents


Functions

private pure module function linspace_default_1_cdp_cdp(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=dp), intent(in) :: start
complex(kind=dp), intent(in) :: end

Return Value complex(kind=dp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_csp_csp(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=sp), intent(in) :: start
complex(kind=sp), intent(in) :: end

Return Value complex(kind=sp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_iint16_iint16(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int16), intent(in) :: start
integer(kind=int16), intent(in) :: end

Return Value real(kind=dp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_iint32_iint32(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int32), intent(in) :: start
integer(kind=int32), intent(in) :: end

Return Value real(kind=dp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_iint64_iint64(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int64), intent(in) :: start
integer(kind=int64), intent(in) :: end

Return Value real(kind=dp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_iint8_iint8(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int8), intent(in) :: start
integer(kind=int8), intent(in) :: end

Return Value real(kind=dp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_rdp_rdp(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(in) :: start
real(kind=dp), intent(in) :: end

Return Value real(kind=dp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_default_1_rsp_rsp(start, end) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=sp), intent(in) :: start
real(kind=sp), intent(in) :: end

Return Value real(kind=sp)(DEFAULT_LINSPACE_LENGTH)

private pure module function linspace_n_1_cdp_cdp(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=dp), intent(in) :: start
complex(kind=dp), intent(in) :: end
integer, intent(in) :: n

Return Value complex(kind=dp)(max(n,0))

private pure module function linspace_n_1_csp_csp(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
complex(kind=sp), intent(in) :: start
complex(kind=sp), intent(in) :: end
integer, intent(in) :: n

Return Value complex(kind=sp)(max(n,0))

private pure module function linspace_n_1_iint16_iint16(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int16), intent(in) :: start
integer(kind=int16), intent(in) :: end
integer, intent(in) :: n

Return Value real(kind=dp)(max(n,0))

private pure module function linspace_n_1_iint32_iint32(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int32), intent(in) :: start
integer(kind=int32), intent(in) :: end
integer, intent(in) :: n

Return Value real(kind=dp)(max(n,0))

private pure module function linspace_n_1_iint64_iint64(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int64), intent(in) :: start
integer(kind=int64), intent(in) :: end
integer, intent(in) :: n

Return Value real(kind=dp)(max(n,0))

private pure module function linspace_n_1_iint8_iint8(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
integer(kind=int8), intent(in) :: start
integer(kind=int8), intent(in) :: end
integer, intent(in) :: n

Return Value real(kind=dp)(max(n,0))

private pure module function linspace_n_1_rdp_rdp(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(in) :: start
real(kind=dp), intent(in) :: end
integer, intent(in) :: n

Return Value real(kind=dp)(max(n,0))

private pure module function linspace_n_1_rsp_rsp(start, end, n) result(res)

Arguments

TypeIntentOptionalAttributesName
real(kind=sp), intent(in) :: start
real(kind=sp), intent(in) :: end
integer, intent(in) :: n

Return Value real(kind=sp)(max(n,0))