Convert a Matrix to Jordan-Like Form for Term Structure Models
JordanMat(matrix_in)A matrix in a specialized block form used in term structure modeling
squared matrix prior to Jordan form
The mathematical approach is based on methods described in: Dai, Q., & Singleton, K. J. (2000). Specification Analysis of Affine Term Structure Models. The Journal of Finance, 55(5), 1943-1978.
Le, A., & Singleton, K. J. (2018). Small Package of Matlab Routines for Estimation of Some Term Structure Models. EABCN Training School.
For theoretical background on Jordan forms in term structure models: Duffee, G. R. (2002). Term Premia and Interest Rate Forecasts in Affine Models. The Journal of Finance, 57(1), 405-443.