Abstract
In this paper we extend the structure-preserving doubling algorithm (SDA) to compute the symmetric positive semi-definite solutions of the generalized continuous as well as discrete algebraic Riccati equations. Our main idea is to relate continuous and discrete time control systems based on the generalized Caley transformation.In the end, we select some examples to illustrate that the G-SDA performs better than the MATLAB commands in the control toolbox.