20-May-2023 11:00:19 r8lt_test() MATLAB/Octave version 5.2.0 Test r8lt(). r8ge_to_r8lt_test(): r8ge_to_r8lt() converts an R8GE matrix to R8LT format. The random R8GE matrix: Col: 1 2 3 4 Row --- 1 0.768162 0.235615 0.315008 0.507497 2 0.849699 0.172284 0.341685 0.145616 3 0.46353 0.654244 0.223386 0.0182429 4 0.568646 0.0647431 0.964504 0.0393926 5 0.137746 0.343468 0.472087 0.401946 The R8LT matrix: Col: 1 2 3 4 Row --- 1 0.768162 2 0.849699 0.172284 3 0.46353 0.654244 0.223386 4 0.568646 0.0647431 0.964504 0.0393926 5 0.137746 0.343468 0.472087 0.401946 r8lt_det_test(): r8lt_det() computes the determinant of an R8LT matrix The matrix A: Col: 1 2 3 4 5 Row --- 1 0.331893 2 0.551979 0.16727 3 0.493432 0.308477 0.484879 4 0.439968 0.999408 0.940563 0.397525 5 0.537037 0.0569655 0.654513 0.902557 0.355514 Determinant is 0.00380426 r8lt_indicator_test(): r8lt_indicator() sets up an indicator matrix in R8LT format; The R8LT indicator matrix: Col: 1 2 3 4 5 Row --- 1 11 2 21 22 3 31 32 33 4 41 42 43 44 5 51 52 53 54 55 6 61 62 63 64 65 r8lt_inverse_test(): r8lt_inverse() computes the inverse of an R8LT matrix. The matrix A: Col: 1 2 3 4 5 Row --- 1 0.687011 2 0.169931 0.670384 3 0.481903 0.661343 0.446349 4 0.145886 0.510112 0.495216 0.824187 5 0.00406081 0.726368 0.0725734 0.893071 0.732995 The inverse matrix B: Col: 1 2 3 4 5 Row --- 1 1.45558 2 -0.368965 1.49168 3 -1.02484 -2.21018 2.2404 4 0.586494 0.404753 -1.34615 1.21332 5 -0.255543 -1.75251 1.41831 -1.47829 1.36427 The product C = A * B: Col: 1 2 3 4 5 Row --- 1 1 2 0 1 3 2.77556e-17 1.11022e-16 1 4 5.55112e-17 0 0 1 5 0 0 0 0 1 r8lt_mm_test(): r8lt_mm() computes C = A * B for R8LT matrices. The matrix A: Col: 1 2 3 4 5 Row --- 1 1 2 1 1 3 1 1 1 4 1 1 1 1 5 1 1 1 1 1 The product C = A * A Col: 1 2 3 4 5 Row --- 1 1 2 2 1 3 3 2 1 4 4 3 2 1 5 5 4 3 2 1 r8lt_mtm_test(): r8lt_mtm() computes C = A' * B for R8LT matrices. The matrix A: Col: 1 2 3 4 5 Row --- 1 1 2 1 1 3 1 1 1 4 1 1 1 1 5 1 1 1 1 1 The product C = A' * A Col: 1 2 3 4 5 Row --- 1 5 4 3 2 1 2 4 4 3 2 1 3 3 3 3 2 1 4 2 2 2 2 1 5 1 1 1 1 1 r8lt_mtv_test(): r8lt_mtv() computes A'*x for an R8LT matrix. The matrix A: Col: 1 2 3 4 Row --- 1 11 2 21 22 3 31 32 33 4 41 42 43 44 5 51 52 53 54 The vector x 1: 1 2: 2 3: 3 4: 4 5: 5 b = A'*x: 1: 565 2: 568 3: 536 4: 446 r8lt_mv_test(): r8lt_mv() computes A*x for an R8LT matrix. The matrix A: Col: 1 2 3 4 Row --- 1 11 2 21 22 3 31 32 33 4 41 42 43 44 5 51 52 53 54 The vector x 1: 1 2: 2 3: 3 4: 4 b = A*x: 1: 11 2: 65 3: 194 4: 430 5: 530 r8lt_print_test(): r8lt_print() prints an R8LT matrix; The R8LT matrix: Col: 1 2 3 4 5 Row --- 1 11 2 21 22 3 31 32 33 4 41 42 43 44 5 51 52 53 54 55 6 61 62 63 64 65 r8lt_print_some_test(): r8lt_print_some() prints some of an R8LT matrix; Rows 2-3, Cols 2-4: Col: 2 3 4 Row --- 2 22 3 32 33 r8lt_random_test(): r8lt_random() randomizes an R8LT matrix; The random R8LT matrix: Col: 1 2 3 4 5 Row --- 1 0.144756 2 0.317872 0.625399 3 0.651231 0.689645 0.791972 4 0.118311 0.485805 0.110512 0.334032 5 0.634528 0.476012 0.960885 0.478814 0.56824 6 0.120834 0.128616 0.879398 0.881942 0.394248 r8lt_sl_test(): r8lt_sl() solves A*x=b for an R8LT matrix A. The R8LT matrix: Col: 1 2 3 4 5 Row --- 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 Solution: 1: 1 2: 2 3: 3 4: 4 5: 5 r8lt_slt_test(): r8lt_slt() solves A'*x=b for an R8LT matrix A The R8LT matrix: Col: 1 2 3 4 5 Row --- 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 Solution to transposed system: 1: 1 2: 2 3: 3 4: 4 5: 5 r8lt_to_r8ge_test(): r8lt_to_r8ge() converts an R8LT matrix to R8GE format. The random R8LT matrix: Col: 1 2 3 4 Row --- 1 0.682588 2 0.270716 0.539197 3 0.883885 0.422706 0.229996 4 0.761 0.717535 0.678763 0.50877 5 0.0130842 0.14527 0.589783 0.15657 The R8GE matrix Col: 1 2 3 4 Row --- 1 0.682588 0 0 0 2 0.270716 0.539197 0 0 3 0.883885 0.422706 0.229996 0 4 0.761 0.717535 0.678763 0.50877 5 0.0130842 0.14527 0.589783 0.15657 r8lt_zeros_test(): r8lt_zeros() zeros out space for an R8LT matrix. Matrix order M, N = 5, 4 Matrix A: Col: 1 2 3 4 Row --- 1 0 2 0 0 3 0 0 0 4 0 0 0 0 5 0 0 0 0 r8lt_test(): Normal end of execution. 20-May-2023 11:00:19