function modifyX
import Re = Modelica.ComplexMath.real;
import Im = Modelica.ComplexMath.imag;
input Complex X[:, size(X, 1)] "Complex eigenvector matrix";
input Complex S[size(X, 1), :] "Complex eigenvector matrix";
input Integer m "Rank of the system input matrix B; S_real and S_imag must have n*m columns";
input Integer ncp "number of complex pairs";
input Integer steps "Number of iterations";
input Boolean IniX = false "Initial values of X are provided";
output Complex Xm[size(X, 1), size(X, 2)];
end modifyX;