.TRANSFORM.Math.fillArray_2D

Information

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

Interface

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;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos