stdlib_math#

See also the specification page: stdlib_math.

stdlib_math (module)#

Variables

DEFAULT_LINSPACE_LENGTHinteger, parameter, Default = 100
DEFAULT_LOGSPACE_LENGTHinteger, parameter, Default = 50
DEFAULT_LOGSPACE_BASEinteger, parameter, Default = 10
EULERS_NUMBER_SPreal(kind=sp), parameter, Default = exp(1.0_sp)
EULERS_NUMBER_DPreal(kind=dp), parameter, Default = exp(1.0_dp)
stdlib_meshgrid_xyinteger, parameter, Default = 0

Values for optional argument indexing of meshgrid

stdlib_meshgrid_ijinteger, parameter, Default = 1

Values for optional argument indexing of meshgrid

Interfaces

clip (interface)#

clip (interface)
Procedures:

swap (interface)#

swap (interface)

Swap the values of the lhs and rhs arguments (Specification: stdlib_math)

Version: experimental

Procedures:

gcd (interface)#

gcd (interface)

Returns the greatest common divisor of two integers (Specification: stdlib_math)

Version: experimental

Procedures:

linspace (interface)#

linspace (interface)

Create rank 1 arrays of linearly spaced elements. (Specification: stdlib_math)

Procedures:
pure module function linspace_default_1_rsp_rsp(start, end) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
Returns:
resreal(kind=sp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_default_1_rdp_rdp(start, end) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_default_1_csp_csp(start, end) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
Returns:
rescomplex(kind=sp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_default_1_cdp_cdp(start, end) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
Returns:
rescomplex(kind=dp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_n_1_rsp_rsp(start, end, n) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_n_1_rdp_rdp(start, end, n) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_n_1_csp_csp(start, end, n) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
ninteger, intent(in)
Returns:
rescomplex(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_n_1_cdp_cdp(start, end, n) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
ninteger, intent(in)
Returns:
rescomplex(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_default_1_iint8_iint8(start, end) -> res#
Arguments:
startinteger(kind=int8), intent(in)
endinteger(kind=int8), intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_default_1_iint16_iint16(start, end) -> res#
Arguments:
startinteger(kind=int16), intent(in)
endinteger(kind=int16), intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_default_1_iint32_iint32(start, end) -> res#
Arguments:
startinteger(kind=int32), intent(in)
endinteger(kind=int32), intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_default_1_iint64_iint64(start, end) -> res#
Arguments:
startinteger(kind=int64), intent(in)
endinteger(kind=int64), intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LINSPACE_LENGTH)
pure module function linspace_n_1_iint8_iint8(start, end, n) -> res#
Arguments:
startinteger(kind=int8), intent(in)
endinteger(kind=int8), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_n_1_iint16_iint16(start, end, n) -> res#
Arguments:
startinteger(kind=int16), intent(in)
endinteger(kind=int16), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_n_1_iint32_iint32(start, end, n) -> res#
Arguments:
startinteger(kind=int32), intent(in)
endinteger(kind=int32), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function linspace_n_1_iint64_iint64(start, end, n) -> res#
Arguments:
startinteger(kind=int64), intent(in)
endinteger(kind=int64), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)

logspace (interface)#

logspace (interface)

Create rank 1 arrays of logarithmically spaced elements. (Specification: stdlib_math)

Procedures:
pure module function logspace_1_rsp_default(start, end) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
Returns:
resreal(kind=sp), dimension(DEFAULT_LOGSPACE_LENGTH)
pure module function logspace_1_rdp_default(start, end) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LOGSPACE_LENGTH)
pure module function logspace_1_csp_default(start, end) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
Returns:
rescomplex(kind=sp), dimension(DEFAULT_LOGSPACE_LENGTH)
pure module function logspace_1_cdp_default(start, end) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
Returns:
rescomplex(kind=dp), dimension(DEFAULT_LOGSPACE_LENGTH)
pure module function logspace_1_iint32_default(start, end) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
Returns:
resreal(kind=dp), dimension(DEFAULT_LOGSPACE_LENGTH)
pure module function logspace_1_rsp_n(start, end, n) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_rdp_n(start, end, n) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_csp_n(start, end, n) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
ninteger, intent(in)
Returns:
rescomplex(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_cdp_n(start, end, n) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
ninteger, intent(in)
Returns:
rescomplex(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_iint32_n(start, end, n) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
ninteger, intent(in)
Returns:
resreal(kind=dp), dimension(n)
pure module function logspace_1_rsp_n_rbase(start, end, n, base) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
ninteger, intent(in)
basereal(kind=sp), intent(in)
Returns:
resreal(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_rsp_n_cbase(start, end, n, base) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
ninteger, intent(in)
basecomplex(kind=sp), intent(in)
Returns:
resreal(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_rsp_n_ibase(start, end, n, base) -> res#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in)
ninteger, intent(in)
baseinteger, intent(in)
Returns:
resreal(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_rdp_n_rbase(start, end, n, base) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
ninteger, intent(in)
basereal(kind=dp), intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_rdp_n_cbase(start, end, n, base) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
ninteger, intent(in)
basecomplex(kind=dp), intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_rdp_n_ibase(start, end, n, base) -> res#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in)
ninteger, intent(in)
baseinteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_csp_n_rbase(start, end, n, base) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
ninteger, intent(in)
basereal(kind=sp), intent(in)
Returns:
rescomplex(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_csp_n_cbase(start, end, n, base) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
ninteger, intent(in)
basecomplex(kind=sp), intent(in)
Returns:
rescomplex(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_csp_n_ibase(start, end, n, base) -> res#
Arguments:
startcomplex(kind=sp), intent(in)
endcomplex(kind=sp), intent(in)
ninteger, intent(in)
baseinteger, intent(in)
Returns:
rescomplex(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_cdp_n_rbase(start, end, n, base) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
ninteger, intent(in)
basereal(kind=dp), intent(in)
Returns:
rescomplex(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_cdp_n_cbase(start, end, n, base) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
ninteger, intent(in)
basecomplex(kind=dp), intent(in)
Returns:
rescomplex(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_cdp_n_ibase(start, end, n, base) -> res#
Arguments:
startcomplex(kind=dp), intent(in)
endcomplex(kind=dp), intent(in)
ninteger, intent(in)
baseinteger, intent(in)
Returns:
rescomplex(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_iint32_n_rspbase(start, end, n, base) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
ninteger, intent(in)
basereal(kind=sp), intent(in)
Returns:
resreal(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_iint32_n_cspbase(start, end, n, base) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
ninteger, intent(in)
basecomplex(kind=sp), intent(in)
Returns:
rescomplex(kind=sp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_iint32_n_rdpbase(start, end, n, base) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
ninteger, intent(in)
basereal(kind=dp), intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_iint32_n_cdpbase(start, end, n, base) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
ninteger, intent(in)
basecomplex(kind=dp), intent(in)
Returns:
rescomplex(kind=dp), (max(n, 0)), dimension(max(n,0)
pure module function logspace_1_iint32_n_ibase(start, end, n, base) -> res#
Arguments:
startinteger, intent(in)
endinteger, intent(in)
ninteger, intent(in)
baseinteger, intent(in)
Returns:
resreal(kind=dp), (max(n, 0)), dimension(max(n,0)

arange (interface)#

arange (interface)

arange creates a one-dimensional array of the integer/real type with fixed-spaced values of given spacing, within a given interval. (Specification: stdlib_math)

Procedures:
pure module function arange_r_sp(start, end, step) -> result#
Arguments:
startreal(kind=sp), intent(in)
endreal(kind=sp), intent(in), optional
stepreal(kind=sp), intent(in), optional
Returns:
resultreal(kind=sp), allocatable, dimension(:)
pure module function arange_r_dp(start, end, step) -> result#
Arguments:
startreal(kind=dp), intent(in)
endreal(kind=dp), intent(in), optional
stepreal(kind=dp), intent(in), optional
Returns:
resultreal(kind=dp), allocatable, dimension(:)
pure module function arange_i_int8(start, end, step) -> result#
Arguments:
startinteger(kind=int8), intent(in)
endinteger(kind=int8), intent(in), optional
stepinteger(kind=int8), intent(in), optional
Returns:
resultinteger(kind=int8), allocatable, dimension(:)
pure module function arange_i_int16(start, end, step) -> result#
Arguments:
startinteger(kind=int16), intent(in)
endinteger(kind=int16), intent(in), optional
stepinteger(kind=int16), intent(in), optional
Returns:
resultinteger(kind=int16), allocatable, dimension(:)
pure module function arange_i_int32(start, end, step) -> result#
Arguments:
startinteger(kind=int32), intent(in)
endinteger(kind=int32), intent(in), optional
stepinteger(kind=int32), intent(in), optional
Returns:
resultinteger(kind=int32), allocatable, dimension(:)
pure module function arange_i_int64(start, end, step) -> result#
Arguments:
startinteger(kind=int64), intent(in)
endinteger(kind=int64), intent(in), optional
stepinteger(kind=int64), intent(in), optional
Returns:
resultinteger(kind=int64), allocatable, dimension(:)

arg (interface)#

arg (interface)

arg computes the phase angle in the interval (-π,π]. (Specification: stdlib_math)

Procedures:

argd (interface)#

argd (interface)

argd computes the phase angle of degree version in the interval (-180.0,180.0]. (Specification: stdlib_math)

Procedures:

argpi (interface)#

argpi (interface)

argpi computes the phase angle of circular version in the interval (-1.0,1.0]. (Specification: stdlib_math)

Procedures:

deg2rad (interface)#

deg2rad (interface)

deg2rad converts phase angles from degrees to radians. (Specification: stdlib_math)

Procedures:

rad2deg (interface)#

rad2deg (interface)

rad2deg converts phase angles from radians to degrees. (Specification: stdlib_math)

Procedures:

is_close (interface)#

is_close (interface)

Returns a boolean scalar/array where two scalar/arrays are element-wise equal within a tolerance. (Specification: stdlib_math)

Procedures:
elemental module function is_close_rsp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=sp), intent(in)
breal(kind=sp), intent(in)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
elemental module function is_close_rdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=dp), intent(in)
breal(kind=dp), intent(in)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
elemental module function is_close_csp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=sp), intent(in)
bcomplex(kind=sp), intent(in)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
elemental module function is_close_cdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=dp), intent(in)
bcomplex(kind=dp), intent(in)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical

all_close (interface)#

all_close (interface)

Returns a boolean scalar where two arrays are element-wise equal within a tolerance. (Specification: stdlib_math)

Procedures:
pure module function all_close_1_rsp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=sp), intent(in), dimension(:)
breal(kind=sp), intent(in), dimension(:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_2_rsp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=sp), (:, :), intent(in), dimension(:,:)
breal(kind=sp), (:, :), intent(in), dimension(:,:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_3_rsp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=sp), (:, :, :), intent(in), dimension(:,:,:)
breal(kind=sp), (:, :, :), intent(in), dimension(:,:,:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_4_rsp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=sp), (:, :, :, :), intent(in), dimension(:,:,:,:)
breal(kind=sp), (:, :, :, :), intent(in), dimension(:,:,:,:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_1_rdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=dp), intent(in), dimension(:)
breal(kind=dp), intent(in), dimension(:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_2_rdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=dp), (:, :), intent(in), dimension(:,:)
breal(kind=dp), (:, :), intent(in), dimension(:,:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_3_rdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=dp), (:, :, :), intent(in), dimension(:,:,:)
breal(kind=dp), (:, :, :), intent(in), dimension(:,:,:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_4_rdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
areal(kind=dp), (:, :, :, :), intent(in), dimension(:,:,:,:)
breal(kind=dp), (:, :, :, :), intent(in), dimension(:,:,:,:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_1_csp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=sp), intent(in), dimension(:)
bcomplex(kind=sp), intent(in), dimension(:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_2_csp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=sp), (:, :), intent(in), dimension(:,:)
bcomplex(kind=sp), (:, :), intent(in), dimension(:,:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_3_csp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=sp), (:, :, :), intent(in), dimension(:,:,:)
bcomplex(kind=sp), (:, :, :), intent(in), dimension(:,:,:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_4_csp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=sp), (:, :, :, :), intent(in), dimension(:,:,:,:)
bcomplex(kind=sp), (:, :, :, :), intent(in), dimension(:,:,:,:)
rel_tolreal(kind=sp), intent(in), optional
abs_tolreal(kind=sp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_1_cdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=dp), intent(in), dimension(:)
bcomplex(kind=dp), intent(in), dimension(:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_2_cdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=dp), (:, :), intent(in), dimension(:,:)
bcomplex(kind=dp), (:, :), intent(in), dimension(:,:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_3_cdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=dp), (:, :, :), intent(in), dimension(:,:,:)
bcomplex(kind=dp), (:, :, :), intent(in), dimension(:,:,:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical
pure module function all_close_4_cdp(a, b, rel_tol, abs_tol, equal_nan) -> close#
Arguments:
acomplex(kind=dp), (:, :, :, :), intent(in), dimension(:,:,:,:)
bcomplex(kind=dp), (:, :, :, :), intent(in), dimension(:,:,:,:)
rel_tolreal(kind=dp), intent(in), optional
abs_tolreal(kind=dp), intent(in), optional
equal_nanlogical, intent(in), optional
Returns:
closelogical

diff (interface)#

diff (interface)

Computes differences between adjacent elements of an array. (Specification: stdlib_math)

Procedures:
pure module function diff_1_sp(x, n, prepend, append) -> y#
Arguments:
xreal(kind=sp), intent(in), dimension(:)
ninteger, intent(in), optional
prependreal(kind=sp), intent(in), optional, dimension(:)
appendreal(kind=sp), intent(in), optional, dimension(:)
Returns:
yreal(kind=sp), allocatable, dimension(:)
pure module function diff_2_sp(x, n, dim, prepend, append) -> y#
Arguments:
xreal(kind=sp), (:, :), intent(in), dimension(:,:)
ninteger, intent(in), optional
diminteger, intent(in), optional
prependreal(kind=sp), (:, :), intent(in), optional, dimension(:,:)
appendreal(kind=sp), (:, :), intent(in), optional, dimension(:,:)
Returns:
yreal(kind=sp), allocatable, (:, :), dimension(:,:)
pure module function diff_1_dp(x, n, prepend, append) -> y#
Arguments:
xreal(kind=dp), intent(in), dimension(:)
ninteger, intent(in), optional
prependreal(kind=dp), intent(in), optional, dimension(:)
appendreal(kind=dp), intent(in), optional, dimension(:)
Returns:
yreal(kind=dp), allocatable, dimension(:)
pure module function diff_2_dp(x, n, dim, prepend, append) -> y#
Arguments:
xreal(kind=dp), (:, :), intent(in), dimension(:,:)
ninteger, intent(in), optional
diminteger, intent(in), optional
prependreal(kind=dp), (:, :), intent(in), optional, dimension(:,:)
appendreal(kind=dp), (:, :), intent(in), optional, dimension(:,:)
Returns:
yreal(kind=dp), allocatable, (:, :), dimension(:,:)
pure module function diff_1_int8(x, n, prepend, append) -> y#
Arguments:
xinteger(kind=int8), intent(in), dimension(:)
ninteger, intent(in), optional
prependinteger(kind=int8), intent(in), optional, dimension(:)
appendinteger(kind=int8), intent(in), optional, dimension(:)
Returns:
yinteger(kind=int8), allocatable, dimension(:)
pure module function diff_2_int8(x, n, dim, prepend, append) -> y#
Arguments:
xinteger(kind=int8), (:, :), intent(in), dimension(:,:)
ninteger, intent(in), optional
diminteger, intent(in), optional
prependinteger(kind=int8), (:, :), intent(in), optional, dimension(:,:)
appendinteger(kind=int8), (:, :), intent(in), optional, dimension(:,:)
Returns:
yinteger(kind=int8), allocatable, (:, :), dimension(:,:)
pure module function diff_1_int16(x, n, prepend, append) -> y#
Arguments:
xinteger(kind=int16), intent(in), dimension(:)
ninteger, intent(in), optional
prependinteger(kind=int16), intent(in), optional, dimension(:)
appendinteger(kind=int16), intent(in), optional, dimension(:)
Returns:
yinteger(kind=int16), allocatable, dimension(:)
pure module function diff_2_int16(x, n, dim, prepend, append) -> y#
Arguments:
xinteger(kind=int16), (:, :), intent(in), dimension(:,:)
ninteger, intent(in), optional
diminteger, intent(in), optional
prependinteger(kind=int16), (:, :), intent(in), optional, dimension(:,:)
appendinteger(kind=int16), (:, :), intent(in), optional, dimension(:,:)
Returns:
yinteger(kind=int16), allocatable, (:, :), dimension(:,:)
pure module function diff_1_int32(x, n, prepend, append) -> y#
Arguments:
xinteger(kind=int32), intent(in), dimension(:)
ninteger, intent(in), optional
prependinteger(kind=int32), intent(in), optional, dimension(:)
appendinteger(kind=int32), intent(in), optional, dimension(:)
Returns:
yinteger(kind=int32), allocatable, dimension(:)
pure module function diff_2_int32(x, n, dim, prepend, append) -> y#
Arguments:
xinteger(kind=int32), (:, :), intent(in), dimension(:,:)
ninteger, intent(in), optional
diminteger, intent(in), optional
prependinteger(kind=int32), (:, :), intent(in), optional, dimension(:,:)
appendinteger(kind=int32), (:, :), intent(in), optional, dimension(:,:)
Returns:
yinteger(kind=int32), allocatable, (:, :), dimension(:,:)
pure module function diff_1_int64(x, n, prepend, append) -> y#
Arguments:
xinteger(kind=int64), intent(in), dimension(:)
ninteger, intent(in), optional
prependinteger(kind=int64), intent(in), optional, dimension(:)
appendinteger(kind=int64), intent(in), optional, dimension(:)
Returns:
yinteger(kind=int64), allocatable, dimension(:)
pure module function diff_2_int64(x, n, dim, prepend, append) -> y#
Arguments:
xinteger(kind=int64), (:, :), intent(in), dimension(:,:)
ninteger, intent(in), optional
diminteger, intent(in), optional
prependinteger(kind=int64), (:, :), intent(in), optional, dimension(:,:)
appendinteger(kind=int64), (:, :), intent(in), optional, dimension(:,:)
Returns:
yinteger(kind=int64), allocatable, (:, :), dimension(:,:)

meshgrid (interface)#

meshgrid (interface)

Computes a list of coordinate matrices from coordinate vectors. (Specification: stdlib_math)

Procedures:
module subroutine meshgrid_1_iint8_iint8(x1, xm1, indexing)#
Arguments:
x1integer(kind=int8), intent(in), dimension(:)
xm1integer(kind=int8), intent(out), dimension(:)
indexinginteger, intent(in), optional
module subroutine meshgrid_2_iint8_iint8(x1, x2, xm1, xm2, indexing)#
Arguments:
x1integer(kind=int8), intent(in), dimension(:)
x2integer(kind=int8), intent(in), dimension(:)
xm1integer(kind=int8), (:, :), intent(out), dimension(:,:)
xm2integer(kind=int8), (:, :), intent(out), dimension(:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_3_iint8_iint8(x1, x2, x3, xm1, xm2, xm3, indexing)#
Arguments:
x1integer(kind=int8), intent(in), dimension(:)
x2integer(kind=int8), intent(in), dimension(:)
x3integer(kind=int8), intent(in), dimension(:)
xm1integer(kind=int8), (:, :, :), intent(out), dimension(:,:,:)
xm2integer(kind=int8), (:, :, :), intent(out), dimension(:,:,:)
xm3integer(kind=int8), (:, :, :), intent(out), dimension(:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_4_iint8_iint8(x1, x2, x3, x4, xm1, xm2, xm3, xm4, indexing)#
Arguments:
x1integer(kind=int8), intent(in), dimension(:)
x2integer(kind=int8), intent(in), dimension(:)
x3integer(kind=int8), intent(in), dimension(:)
x4integer(kind=int8), intent(in), dimension(:)
xm1integer(kind=int8), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm2integer(kind=int8), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm3integer(kind=int8), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm4integer(kind=int8), (:, :, :, :), intent(out), dimension(:,:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_1_iint16_iint16(x1, xm1, indexing)#
Arguments:
x1integer(kind=int16), intent(in), dimension(:)
xm1integer(kind=int16), intent(out), dimension(:)
indexinginteger, intent(in), optional
module subroutine meshgrid_2_iint16_iint16(x1, x2, xm1, xm2, indexing)#
Arguments:
x1integer(kind=int16), intent(in), dimension(:)
x2integer(kind=int16), intent(in), dimension(:)
xm1integer(kind=int16), (:, :), intent(out), dimension(:,:)
xm2integer(kind=int16), (:, :), intent(out), dimension(:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_3_iint16_iint16(x1, x2, x3, xm1, xm2, xm3, indexing)#
Arguments:
x1integer(kind=int16), intent(in), dimension(:)
x2integer(kind=int16), intent(in), dimension(:)
x3integer(kind=int16), intent(in), dimension(:)
xm1integer(kind=int16), (:, :, :), intent(out), dimension(:,:,:)
xm2integer(kind=int16), (:, :, :), intent(out), dimension(:,:,:)
xm3integer(kind=int16), (:, :, :), intent(out), dimension(:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_4_iint16_iint16(x1, x2, x3, x4, xm1, xm2, xm3, xm4, indexing)#
Arguments:
x1integer(kind=int16), intent(in), dimension(:)
x2integer(kind=int16), intent(in), dimension(:)
x3integer(kind=int16), intent(in), dimension(:)
x4integer(kind=int16), intent(in), dimension(:)
xm1integer(kind=int16), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm2integer(kind=int16), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm3integer(kind=int16), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm4integer(kind=int16), (:, :, :, :), intent(out), dimension(:,:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_1_iint32_iint32(x1, xm1, indexing)#
Arguments:
x1integer(kind=int32), intent(in), dimension(:)
xm1integer(kind=int32), intent(out), dimension(:)
indexinginteger, intent(in), optional
module subroutine meshgrid_2_iint32_iint32(x1, x2, xm1, xm2, indexing)#
Arguments:
x1integer(kind=int32), intent(in), dimension(:)
x2integer(kind=int32), intent(in), dimension(:)
xm1integer(kind=int32), (:, :), intent(out), dimension(:,:)
xm2integer(kind=int32), (:, :), intent(out), dimension(:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_3_iint32_iint32(x1, x2, x3, xm1, xm2, xm3, indexing)#
Arguments:
x1integer(kind=int32), intent(in), dimension(:)
x2integer(kind=int32), intent(in), dimension(:)
x3integer(kind=int32), intent(in), dimension(:)
xm1integer(kind=int32), (:, :, :), intent(out), dimension(:,:,:)
xm2integer(kind=int32), (:, :, :), intent(out), dimension(:,:,:)
xm3integer(kind=int32), (:, :, :), intent(out), dimension(:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_4_iint32_iint32(x1, x2, x3, x4, xm1, xm2, xm3, xm4, indexing)#
Arguments:
x1integer(kind=int32), intent(in), dimension(:)
x2integer(kind=int32), intent(in), dimension(:)
x3integer(kind=int32), intent(in), dimension(:)
x4integer(kind=int32), intent(in), dimension(:)
xm1integer(kind=int32), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm2integer(kind=int32), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm3integer(kind=int32), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm4integer(kind=int32), (:, :, :, :), intent(out), dimension(:,:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_1_iint64_iint64(x1, xm1, indexing)#
Arguments:
x1integer(kind=int64), intent(in), dimension(:)
xm1integer(kind=int64), intent(out), dimension(:)
indexinginteger, intent(in), optional
module subroutine meshgrid_2_iint64_iint64(x1, x2, xm1, xm2, indexing)#
Arguments:
x1integer(kind=int64), intent(in), dimension(:)
x2integer(kind=int64), intent(in), dimension(:)
xm1integer(kind=int64), (:, :), intent(out), dimension(:,:)
xm2integer(kind=int64), (:, :), intent(out), dimension(:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_3_iint64_iint64(x1, x2, x3, xm1, xm2, xm3, indexing)#
Arguments:
x1integer(kind=int64), intent(in), dimension(:)
x2integer(kind=int64), intent(in), dimension(:)
x3integer(kind=int64), intent(in), dimension(:)
xm1integer(kind=int64), (:, :, :), intent(out), dimension(:,:,:)
xm2integer(kind=int64), (:, :, :), intent(out), dimension(:,:,:)
xm3integer(kind=int64), (:, :, :), intent(out), dimension(:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_4_iint64_iint64(x1, x2, x3, x4, xm1, xm2, xm3, xm4, indexing)#
Arguments:
x1integer(kind=int64), intent(in), dimension(:)
x2integer(kind=int64), intent(in), dimension(:)
x3integer(kind=int64), intent(in), dimension(:)
x4integer(kind=int64), intent(in), dimension(:)
xm1integer(kind=int64), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm2integer(kind=int64), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm3integer(kind=int64), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm4integer(kind=int64), (:, :, :, :), intent(out), dimension(:,:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_1_rsp_rsp(x1, xm1, indexing)#
Arguments:
x1real(kind=sp), intent(in), dimension(:)
xm1real(kind=sp), intent(out), dimension(:)
indexinginteger, intent(in), optional
module subroutine meshgrid_2_rsp_rsp(x1, x2, xm1, xm2, indexing)#
Arguments:
x1real(kind=sp), intent(in), dimension(:)
x2real(kind=sp), intent(in), dimension(:)
xm1real(kind=sp), (:, :), intent(out), dimension(:,:)
xm2real(kind=sp), (:, :), intent(out), dimension(:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_3_rsp_rsp(x1, x2, x3, xm1, xm2, xm3, indexing)#
Arguments:
x1real(kind=sp), intent(in), dimension(:)
x2real(kind=sp), intent(in), dimension(:)
x3real(kind=sp), intent(in), dimension(:)
xm1real(kind=sp), (:, :, :), intent(out), dimension(:,:,:)
xm2real(kind=sp), (:, :, :), intent(out), dimension(:,:,:)
xm3real(kind=sp), (:, :, :), intent(out), dimension(:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_4_rsp_rsp(x1, x2, x3, x4, xm1, xm2, xm3, xm4, indexing)#
Arguments:
x1real(kind=sp), intent(in), dimension(:)
x2real(kind=sp), intent(in), dimension(:)
x3real(kind=sp), intent(in), dimension(:)
x4real(kind=sp), intent(in), dimension(:)
xm1real(kind=sp), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm2real(kind=sp), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm3real(kind=sp), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm4real(kind=sp), (:, :, :, :), intent(out), dimension(:,:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_1_rdp_rdp(x1, xm1, indexing)#
Arguments:
x1real(kind=dp), intent(in), dimension(:)
xm1real(kind=dp), intent(out), dimension(:)
indexinginteger, intent(in), optional
module subroutine meshgrid_2_rdp_rdp(x1, x2, xm1, xm2, indexing)#
Arguments:
x1real(kind=dp), intent(in), dimension(:)
x2real(kind=dp), intent(in), dimension(:)
xm1real(kind=dp), (:, :), intent(out), dimension(:,:)
xm2real(kind=dp), (:, :), intent(out), dimension(:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_3_rdp_rdp(x1, x2, x3, xm1, xm2, xm3, indexing)#
Arguments:
x1real(kind=dp), intent(in), dimension(:)
x2real(kind=dp), intent(in), dimension(:)
x3real(kind=dp), intent(in), dimension(:)
xm1real(kind=dp), (:, :, :), intent(out), dimension(:,:,:)
xm2real(kind=dp), (:, :, :), intent(out), dimension(:,:,:)
xm3real(kind=dp), (:, :, :), intent(out), dimension(:,:,:)
indexinginteger, intent(in), optional
module subroutine meshgrid_4_rdp_rdp(x1, x2, x3, x4, xm1, xm2, xm3, xm4, indexing)#
Arguments:
x1real(kind=dp), intent(in), dimension(:)
x2real(kind=dp), intent(in), dimension(:)
x3real(kind=dp), intent(in), dimension(:)
x4real(kind=dp), intent(in), dimension(:)
xm1real(kind=dp), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm2real(kind=dp), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm3real(kind=dp), (:, :, :, :), intent(out), dimension(:,:,:,:)
xm4real(kind=dp), (:, :, :, :), intent(out), dimension(:,:,:,:)
indexinginteger, intent(in), optional

Procedures

clip_int8 (function)#

elemental function clip_int8(x, xmin, xmax) -> res
Arguments:
xinteger(kind=int8), intent(in)
xmininteger(kind=int8), intent(in)
xmaxinteger(kind=int8), intent(in)
Returns:
resinteger(kind=int8)

clip_int16 (function)#

elemental function clip_int16(x, xmin, xmax) -> res
Arguments:
xinteger(kind=int16), intent(in)
xmininteger(kind=int16), intent(in)
xmaxinteger(kind=int16), intent(in)
Returns:
resinteger(kind=int16)

clip_int32 (function)#

elemental function clip_int32(x, xmin, xmax) -> res
Arguments:
xinteger(kind=int32), intent(in)
xmininteger(kind=int32), intent(in)
xmaxinteger(kind=int32), intent(in)
Returns:
resinteger(kind=int32)

clip_int64 (function)#

elemental function clip_int64(x, xmin, xmax) -> res
Arguments:
xinteger(kind=int64), intent(in)
xmininteger(kind=int64), intent(in)
xmaxinteger(kind=int64), intent(in)
Returns:
resinteger(kind=int64)

clip_sp (function)#

elemental function clip_sp(x, xmin, xmax) -> res
Arguments:
xreal(kind=sp), intent(in)
xminreal(kind=sp), intent(in)
xmaxreal(kind=sp), intent(in)
Returns:
resreal(kind=sp)

clip_dp (function)#

elemental function clip_dp(x, xmin, xmax) -> res
Arguments:
xreal(kind=dp), intent(in)
xminreal(kind=dp), intent(in)
xmaxreal(kind=dp), intent(in)
Returns:
resreal(kind=dp)

arg_sp (function)#

elemental function arg_sp(z) -> result
Arguments:
zcomplex(kind=sp), intent(in)
Returns:
resultreal(kind=sp)

argd_sp (function)#

elemental function argd_sp(z) -> result
Arguments:
zcomplex(kind=sp), intent(in)
Returns:
resultreal(kind=sp)

argpi_sp (function)#

elemental function argpi_sp(z) -> result
Arguments:
zcomplex(kind=sp), intent(in)
Returns:
resultreal(kind=sp)

arg_dp (function)#

elemental function arg_dp(z) -> result
Arguments:
zcomplex(kind=dp), intent(in)
Returns:
resultreal(kind=dp)

argd_dp (function)#

elemental function argd_dp(z) -> result
Arguments:
zcomplex(kind=dp), intent(in)
Returns:
resultreal(kind=dp)

argpi_dp (function)#

elemental function argpi_dp(z) -> result
Arguments:
zcomplex(kind=dp), intent(in)
Returns:
resultreal(kind=dp)

deg2rad_sp (function)#

elemental function deg2rad_sp(theta) -> result
Arguments:
thetareal(kind=sp), intent(in)
Returns:
resultreal(kind=sp)

rad2deg_sp (function)#

elemental function rad2deg_sp(theta) -> result
Arguments:
thetareal(kind=sp), intent(in)
Returns:
resultreal(kind=sp)

deg2rad_dp (function)#

elemental function deg2rad_dp(theta) -> result
Arguments:
thetareal(kind=dp), intent(in)
Returns:
resultreal(kind=dp)

rad2deg_dp (function)#

elemental function rad2deg_dp(theta) -> result
Arguments:
thetareal(kind=dp), intent(in)
Returns:
resultreal(kind=dp)

gcd_int8 (function)#

elemental function gcd_int8(a, b) -> res

Returns the greatest common divisor of two integers of kind int8 using the Euclidean algorithm.

Arguments:
ainteger(kind=int8), intent(in)
binteger(kind=int8), intent(in)
Returns:
resinteger(kind=int8)

gcd_int16 (function)#

elemental function gcd_int16(a, b) -> res

Returns the greatest common divisor of two integers of kind int16 using the Euclidean algorithm.

Arguments:
ainteger(kind=int16), intent(in)
binteger(kind=int16), intent(in)
Returns:
resinteger(kind=int16)

gcd_int32 (function)#

elemental function gcd_int32(a, b) -> res

Returns the greatest common divisor of two integers of kind int32 using the Euclidean algorithm.

Arguments:
ainteger(kind=int32), intent(in)
binteger(kind=int32), intent(in)
Returns:
resinteger(kind=int32)

gcd_int64 (function)#

elemental function gcd_int64(a, b) -> res

Returns the greatest common divisor of two integers of kind int64 using the Euclidean algorithm.

Arguments:
ainteger(kind=int64), intent(in)
binteger(kind=int64), intent(in)
Returns:
resinteger(kind=int64)

swap_int8 (subroutine)#

elemental subroutine swap_int8(lhs, rhs)
Arguments:
lhsinteger(kind=int8), intent(inout)
rhsinteger(kind=int8), intent(inout)

swap_int16 (subroutine)#

elemental subroutine swap_int16(lhs, rhs)
Arguments:
lhsinteger(kind=int16), intent(inout)
rhsinteger(kind=int16), intent(inout)

swap_int32 (subroutine)#

elemental subroutine swap_int32(lhs, rhs)
Arguments:
lhsinteger(kind=int32), intent(inout)
rhsinteger(kind=int32), intent(inout)

swap_int64 (subroutine)#

elemental subroutine swap_int64(lhs, rhs)
Arguments:
lhsinteger(kind=int64), intent(inout)
rhsinteger(kind=int64), intent(inout)

swap_sp (subroutine)#

elemental subroutine swap_sp(lhs, rhs)
Arguments:
lhsreal(kind=sp), intent(inout)
rhsreal(kind=sp), intent(inout)

swap_dp (subroutine)#

elemental subroutine swap_dp(lhs, rhs)
Arguments:
lhsreal(kind=dp), intent(inout)
rhsreal(kind=dp), intent(inout)

swap_bitset_64 (subroutine)#

elemental subroutine swap_bitset_64(lhs, rhs)
Arguments:
lhstype(bitset_64), intent(inout)
rhstype(bitset_64), intent(inout)

swap_bitset_large (subroutine)#

elemental subroutine swap_bitset_large(lhs, rhs)
Arguments:
lhstype(bitset_large), intent(inout)
rhstype(bitset_large), intent(inout)

swap_csp (subroutine)#

elemental subroutine swap_csp(lhs, rhs)
Arguments:
lhscomplex(kind=sp), intent(inout)
rhscomplex(kind=sp), intent(inout)

swap_cdp (subroutine)#

elemental subroutine swap_cdp(lhs, rhs)
Arguments:
lhscomplex(kind=dp), intent(inout)
rhscomplex(kind=dp), intent(inout)

swap_bool (subroutine)#

elemental subroutine swap_bool(lhs, rhs)
Arguments:
lhslogical, intent(inout)
rhslogical, intent(inout)

swap_str (subroutine)#

elemental subroutine swap_str(lhs, rhs)
Arguments:
lhscharacter(len=*), intent(inout)
rhscharacter(len=*), intent(inout)

swap_stt (subroutine)#

elemental subroutine swap_stt(lhs, rhs)
Arguments:
lhstype(string_type), intent(inout)
rhstype(string_type), intent(inout)