linspace Function

public pure function linspace(start, finish, npts) result(x)

Constructs a linearly spaced array.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: start

The first value in the array.

real(kind=real64), intent(in) :: finish

The last value in the array.

integer(kind=int32), intent(in) :: npts

The number of values in the array.

Return Value real(kind=real64), allocatable, dimension(:)

The resulting array.


Contents