linspace Function

public function linspace(xstart, xend, nx) result(xout)

Return linearly-spaced array over a specified interval

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: xstart

Start value of sequence

real(kind=dp), intent(in) :: xend

End value of sequence

integer, intent(in) :: nx

Number of points sequence

Return Value real(kind=dp), dimension(nx)

Array of real numbers