REPLV Function
Standard Library function that replicates a vector into an array.
note | This function does not work on strings. |
Usage
result = REPLV(vector, dim_vector, dim)
Input Parameters
vector—The vector to be replicated.
dim_vector—A vector specifying the dimensions of the output array.
dim—An integer (≥0) designating the dimension to replicate.
Returned Value
result—An array of dimensions dim_vector.
Keywords
None.
Examples
PM, REPLV([0,1], [2,4], 0)
; PV-WAVE prints:
; 0 0 0 0
; 1 1 1 1
PM, REPLV([0,1], [4,2], 1)
; PV-WAVE prints:
; 0 1
; 0 1
; 0 1
; 0 1
PM, REPLV([0,1], [4,2], 0)
; PV-WAVE prints:
; 0 0
; 1 1
; 0 0
; 1 1
See Also