For example:
For n1=3, n2=2, n3=4, and val={-1,2,3,10}.
The returned matrix is y[3,2,4,4] where y[1,1,:,:] is:
-1 |
2 |
3 |
10 |
-1 |
2 |
3 |
10 |
function fillArray_3D 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,n3))"; input Integer n2 "Array size (i.e., fill(val[i],n1,n2,n3))"; input Integer n3 "Array size (i.e., fill(val[i],n1,n2,n3))"; output Real y[n1, n2, n3, size(val, 1)] "Matrix"; end fillArray_3D;