functionwrapper_calcK
Computes the feedback matrix from the assigned eigenvalues, closed loop eigenvectors and the B matrix factorization
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,size(A, 1)] | A | Real square system matrix | |
| Real[size(A, 1),:] | U0 | U0 and Z are the decompositions of B | |
| Real[size(U0, 2),size(U0, 2)] | Z | Z and U0 are the decompositions of B | |
| Real[size(A, 1)] | gamma_real | Eigenvalue vector, real part | |
| Real[size(A, 1)] | gamma_imag | Eigenvalue vector, imaginary part | |
| Real[n,n] | X_real | Eigenvectors, real part | |
| Real[n,n] | X_imag | Eigenvectors, imaginary part | |
| Integer | nre | Number of real eigenvalues |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(U0, 2),size(A, 1)] | K | Feedback matrix |