function inv extends Modelica.Icons.Function; import Complex; import Modelica_LinearSystems2.Math.Matrices; input Complex A[:, size(A, 1)]; output Complex invA[size(A, 1), size(A, 2)] "Inverse of matrix A"; end inv;