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