linspace Function

public function linspace(a, b, N)

Create an array of N linearly spaced values (not intervals) from a to b. Similar to numpy.linspace(a, b, N).

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: a

Lower endpoint.

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

Upper endpoint.

integer, intent(in) :: N

Number of values (not intervals).

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

Array of linearly spaced values.


Contents

None