For example:
For n=3, and val={-1,2,3,10}.
The returned matrix is y[3,4]
-1 |
2 |
3 |
10 |
-1 |
2 |
3 |
10 |
-1 |
2 |
3 |
10 |
function fillArray_1D extends TRANSFORM.Icons.Function; input Real val[:] "Array of values for use in fill"; input Integer n "Array size (i.e., fill(val[i],n,n2))"; output Real y[n, size(val, 1)] "Matrix"; end fillArray_1D;