Closed JPIvan closed 6 years ago
Clone in Exercise_04_06 and Exercise_04_07 merged into utils.py ssr_solve() function. The following
Ig = np.zeros_like(M) d = np.arange(A.shape[0]) Ig[d, d] = 1 Ig = sympy.Matrix(Ig) was replaced with: I_A = sympy.eye(A.shape[0]) Ig = sympy.BlockMatrix( [[I_A, Z_B], [Z_C, Z_D]] )
Where I and Z are the Identity matrix and Zero matrix of the same shape as A, B, C,and D. I believe this is clearer.
As explained in my email to you, please forgive the 10 commits. Only 1 is relevant - the files changed tab is more useful.
As requested.
Clone in Exercise_04_06 and Exercise_04_07 merged into utils.py ssr_solve() function. The following
Where I and Z are the Identity matrix and Zero matrix of the same shape as A, B, C,and D. I believe this is clearer.