.TRANSFORM.Math.linspaceRepeat_2Dedge

Information

For example:

For x1=fill(0,m), x2=fill(10,m), x3=fill(-5,m), x4 = fill(5,m), n1=5, n2=3, and m=2.

The returned matrix is y[5,3,2]. For the given input each m dimension is identical.

-2.5

0

2.5

-5

1.25

5

-5

2.5

5

-5

3.75

5

2.5

10

7.5


The exposeState option is present once again to assist with discretized boundary conditions (see linspace_2Dedge).

Interface

function linspaceRepeat_2Dedge
  extends TRANSFORM.Icons.Function;
  input Real x1[:] "Edge value x[1,:,m]";
  input Real x2[:] "Edge value x[end,:,m]";
  input Real x3[:] "Edge value x[:,1,m]";
  input Real x4[:] "Edge value x[:,end,m]";
  input Integer n1 "Number of rows";
  input Integer n2 "Number of columns";
  input Boolean exposeState[4] = {true, true, true, true} "= true then set edge to value specified else linspace_1D";
  output Real y[n1, n2, size(x1, 1)] "3-D matrix of a repeated 2-D matrix";
end linspaceRepeat_2Dedge;

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos