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