28-Aug-2022 14:20:08 r8to_test(): MATLAB version Test r8to(). R8TO_DIF2_TEST R8TO_DIF2 sets the second difference matrix as an R8TO matrix. Matrix order N = 5 The matrix: Col: 1 2 3 4 5 Row --- 1 2 -1 0 0 0 2 -1 2 -1 0 0 3 0 -1 2 -1 0 4 0 0 -1 2 -1 5 0 0 0 -1 2 R8TO_INDICATOR_TEST R8TO_INDICATOR sets up a R8TO indicator matrix. Matrix order N = 5 The R8TO indicator matrix: Col: 1 2 3 4 5 Row --- 1 11 12 13 14 15 2 21 11 12 13 14 3 31 21 11 12 13 4 41 31 21 11 12 5 51 41 31 21 11 R8TO_MTV_TEST R8TO_MTV computes b=A'*x, where A is an R8TO matrix. Matrix order N = 5 The Toeplitz matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 x: 1: 1 2: 2 3: 3 4: 4 5: 5 b = A'*x: 1: 1.78236 2: 3.17161 3: 4.94976 4: 6.29393 5: 8.94459 R8TO_MV_TEST R8TO_MV computes b=A*x, where A is an R8TO matrix. Matrix order N = 5 The Toeplitz matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 x: 1: 1 2: 2 3: 3 4: 4 5: 5 b = A*x: 1: 8.9429 2: 9.49842 3: 9.01789 4: 6.47873 5: 2.39304 R8TO_PRINT_TEST R8TO_PRINT prints a R8TO matrix. Matrix order N = 5 The R8TO matrix: Col: 1 2 3 4 5 Row --- 1 11 12 13 14 15 2 21 11 12 13 14 3 31 21 11 12 13 4 41 31 21 11 12 5 51 41 31 21 11 R8TO_PRINT_SOME_TEST R8TO_PRINT_SOME prints some of a R8TO matrix. Matrix order N = 10 Rows2:5, Cols 1:3 Col: 1 2 3 Row --- 2 201 101 102 3 301 201 101 4 401 301 201 5 501 401 301 R8TO_RANDOM_TEST R8TO_RANDOM randomizes an R8TO matrix. Matrix order N = 5 The matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 R8TO_SL_TEST R8TO_SL solves a A*x=b where A is an R8TO matrix. Matrix order N = 5 The Toeplitz matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 Solution: 1: 1 2: 2 3: 3 4: 4 5: 5 R8TO_SLT_TEST R8TO_SLT solves A'*x=b where A is an R8TO matrix. Matrix order N = 5 The Toeplitz matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 Solution to transposed system: 1: 1 2: 2 3: 3 4: 4 5: 5 R8TO_TO_R8GE_TEST R8TO_TO_R8GE converts a matrix from R8TO to R8GE format. Matrix order N = 5 The R8TO matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 The R8GE matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.956318 0.829509 0.561695 0.415307 2 0.0661187 0.218418 0.956318 0.829509 0.561695 3 0.257578 0.0661187 0.218418 0.956318 0.829509 4 0.109957 0.257578 0.0661187 0.218418 0.956318 5 0.043829 0.109957 0.257578 0.0661187 0.218418 R8TO_ZEROS_TEST R8TO_ZEROS zeros an R8TO matrix. Matrix order N = 5 The matrix: Col: 1 2 3 4 5 Row --- 1 0 0 0 0 0 2 0 0 0 0 0 3 0 0 0 0 0 4 0 0 0 0 0 5 0 0 0 0 0 r8to_test(): Normal end of execution. 28-Aug-2022 14:20:08