linspace Function
- Seyed Ali Ghasemi
- BSD 3-Clause
- 11 statements
public pure function linspace(a, b, n) result(x)
Allocate n inclusive uniformly spaced values from a to b.
n=1 returns [a]; n<1 returns a zero-length array.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | a | |||
| real(kind=rk), | intent(in) | :: | b | |||
| integer, | intent(in) | :: | n |