Skip to content
ForCADDocumentation

fill_uniform Subroutine

public pure subroutine fill_uniform(a, b, x)

Fill an existing array with inclusive uniformly spaced values.

A one-element output receives a; an empty output is unchanged.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: a

First value.

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

Last value when size(x)>1.

real(kind=rk), intent(out), contiguous :: x(:)

Caller-owned contiguous output array.