05 June 2024 10:27:36 AM test_eigen_test(): C version Test test_eigen(). r8symm_gen_test(): r8symm_gen() generates an arbitrary size symmetric matrix with known eigenvalues and eigenvectors. The matrix A: Col: 0 1 2 3 4 Row 0: 9.794474 1.270801 -0.971290 1.300704 -2.470261 1: 1.270801 13.964055 1.726591 -0.488823 -3.043957 2: -0.971290 1.726591 11.429126 -3.967395 2.133895 3: 1.300704 -0.488823 -3.967395 11.105287 -2.608415 4: -2.470261 -3.043957 2.133895 -2.608415 11.817166 The eigenvector matrix Q: Col: 0 1 2 3 4 Row 0: 0.339299 0.408054 -0.095884 0.836585 0.096431 1: 0.280538 0.328580 -0.182283 -0.386484 0.794189 2: -0.445337 -0.063111 0.722762 0.240486 0.466340 3: 0.498567 0.388933 0.644569 -0.280508 -0.325590 4: -0.599400 0.755166 -0.140445 -0.119318 -0.191004 The eigenvalue vector LAMBDA: 0: 18.395201 1: 7.636156 2: 7.169701 3: 8.844379 4: 16.064671 LAMBDA versus the column norms of A*Q: 0: 18.395201 18.395201 1: 7.636156 7.636156 2: 7.169701 7.169701 3: 8.844379 8.844379 4: 16.064671 16.064671 r8nsymm_gen_test(): r8nsymm_gen() generates an arbitrary size nonsymmetric matrix with known eigenvalues and eigenvectors. The matrix A: Col: 0 1 2 3 4 Row 0: 11.462137 -5.378458 0.383437 -0.082335 0.995969 1: -2.378957 11.457702 -2.174915 -0.670978 -2.056369 2: -4.637413 0.955193 8.040002 -8.402084 -4.137634 3: 17.104502 -15.117066 5.490711 19.281863 8.446781 4: -9.942931 -15.514547 -9.349736 -0.418886 5.066260 The orthogonal factor Q: Col: 0 1 2 3 4 Row 0: -0.003500 0.025429 -0.664767 0.617328 0.419920 1: 0.123865 -0.135507 0.241603 0.703559 -0.642595 2: 0.168801 0.124974 0.689336 0.319594 0.615275 3: 0.974253 -0.088262 -0.148195 -0.144963 -0.008028 4: -0.083559 -0.978562 0.050672 -0.027493 0.179198 The upper triangular T: Col: 0 1 2 3 4 Row 0: 18.395201 7.636156 7.169701 8.844379 16.064671 1: 0.000000 12.675186 16.346903 15.247713 1.669567 2: 0.000000 0.000000 0.673861 -1.212320 13.679046 3: 0.000000 0.000000 0.000000 10.198375 3.246322 4: 0.000000 0.000000 0.000000 0.000000 13.365341 The eigenvalue vector LAMBDA: 0: 0.673861 1: 10.198375 2: 12.675186 3: 13.365341 4: 18.395201 test_eigen_test(): Normal end of execution. 05 June 2024 10:27:36 AM