repelem Function
- Seyed Ali Ghasemi
- BSD 3-Clause
- 17 statements
public pure function repelem(a, b) result(c)
Repeat each value according to a corresponding nonnegative count. Values retain input order. Shape mismatch or a negative count returns a zero-length array.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | a(:) |
Values to repeat. |
|
| integer, | intent(in), | contiguous | :: | b(:) |
Repetition counts with |