difference Function

public pure function difference(x) result(rst)

Computes the difference between elements in an array.

Arguments

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

The N-element array on which to operate.

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

The (N-1)-element array containing the differences between adjacent elements.


Contents