Skip to main content

Arange

Returns a vector of integers (or reals) by specifying istart, iend, and increment values.

Calling example:

avec = arange(istart, iend, increment)
  • Default value of increment is 1.

Interface

INTERFACE
MODULE PURE FUNCTION arange(istart, iend, increment) RESULT(Ans)
INTEGER(Int8| Int16 | Int32 | Int64) | REAL(Real32| Real64), INTENT(IN) :: istart
!! Start value of the array
INTEGER(Int8| Int16 | Int32 | Int64) | REAL(Real32| Real64), INTENT(IN) :: iend
!! End value of the array
INTEGER(Int8| Int16 | Int32 | Int64) | REAL(Real32| Real64), INTENT(IN), OPTIONAL :: increment
!! Array increment
INTEGER(Int8| Int16 | Int32 | Int64) | REAL(Real32| Real64), DIMENSION(:), ALLOCATABLE :: Ans
END FUNCTION arange
END INTERFACE