Create a 3D matrix of linearly spaced 1D arrays stored in a [n,m] matrix and the special case when n = 1 the average is returned
function linspaceRepeat_1D_multi extends TRANSFORM.Icons.Function; input Real x1[:, :] "First matrix"; input Real x2[size(x1, 1), size(x1, 2)] "Second matrix"; input Integer n "Matrix row size"; output Real y[n, size(x1, 1), size(x1, 2)] "Array"; end linspaceRepeat_1D_multi;