Ui: Square upper-triangular matrix matrix from schur decomposition. If Ui is not given it is set to the identity matrix.
Si: Orthogonal matrix from schur decomposition
idx: array index
Returns
Returns a list of ordered (U, S)
Details
ordschur finds an orthogonal matrix, U so that the eigenvalues appearing on the diagonal of Si are ordered according to the increasing values of the array index where the i-th element of index corresponds to the eigenvalue appearing as the element Si[i,i].
ordschur could also be used in this syntax: ordschur(Si, idx)