Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 19-Mar-2026 14:49:20 r8crs_test(): MATLAB/Octave version 9.11.0.2358333 (R2021b) Update 7 Test r8crs(). r8crs_dif2_test(): r8crs_dif2() sets up a second difference matrix using compressed row storage (CRS). Matrix order M = 5, N = 5 The R8CRS second difference matrix: # I J A ---- ---- ---- -------------- 1 1 1 2 2 1 2 -1 3 2 1 -1 4 2 2 2 5 2 3 -1 6 3 2 -1 7 3 3 2 8 3 4 -1 9 4 3 -1 10 4 4 2 11 4 5 -1 12 5 4 -1 13 5 5 2 r8crs_indicator_test(): r8crs_indicator() sets up a CRS indicator matrix; Matrix order M = 5, N = 5 The R8CRS indicator matrix: # I J A ---- ---- ---- -------------- 1 1 1 11 2 1 2 12 3 1 5 15 4 2 2 22 5 2 5 25 6 3 1 31 7 3 3 33 8 4 1 41 9 4 4 44 10 5 2 52 11 5 3 53 12 5 5 55 r8crs_mtv_test(): r8crs_mtv() multiplies an R8CRS matrix transposed times a vector. Matrix order M = 5, N = 5 R8CRS and R8GE products: 1: -28.7608 -28.7608 2: 63.3733 63.3733 3: -57.6474 -57.6474 4: 37.9356 37.9356 5: 71.4442 71.4442 r8crs_mv_test(): r8crs_mv() multiplies an R8CRS matrix by a vector; Matrix order M = 5, N = 5 R8CRS and R8GE products: 1: 21.9539 21.9539 2: 59.6969 59.6969 3: -29.2317 -29.2317 4: 103.834 103.834 5: 147.931 147.931 r8crs_print_test(): r8crs_print() prints a R8CRS matrix. Matrix order M = 5, N = 5 The R8CRS matrix: # I J A ---- ---- ---- -------------- 1 1 1 11 2 1 2 12 3 1 5 15 4 2 2 22 5 2 5 25 6 3 1 31 7 3 3 33 8 4 1 41 9 4 4 44 10 5 2 52 11 5 3 53 12 5 5 55 r8crs_random_test(): r8crs_random() randomizes a R8SR matrix Matrix order M = 5, N = The R8CRS random matrix: # I J A ---- ---- ---- -------------- 1 1 1 -1.3498869 2 1 2 3.0349235 3 1 5 0.72540422 4 2 2 -0.063054873 5 2 5 0.7147429 6 3 1 -0.20496606 7 3 3 -0.12414435 8 4 1 1.4896976 9 4 4 1.4090345 10 5 2 1.4171924 11 5 3 0.67149713 12 5 5 -1.2074869 r8crs_to_r8ge_test(): r8crs_to_r8ge() converts an R8CRS matrix to R8GE format. Matrix order M = 5, N = 5 The R8CRS matrix: # I J A ---- ---- ---- -------------- 1 1 1 11 2 1 2 12 3 1 5 15 4 2 2 22 5 2 5 25 6 3 1 31 7 3 3 33 8 4 1 41 9 4 4 44 10 5 2 52 11 5 3 53 12 5 5 55 The R8GE matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 0 15 2 0 22 0 0 25 3 31 0 33 0 0 4 41 0 0 44 0 5 0 52 53 0 55 r8crs_zeros_test(): r8crs_zeros() sets up a zero R8CRS matrix; Matrix order M = 5, N = 5 The R8CRS zero matrix: # I J A ---- ---- ---- -------------- 1 1 1 0 2 1 2 0 3 1 5 0 4 2 2 0 5 2 5 0 6 3 1 0 7 3 3 0 8 4 1 0 9 4 4 0 10 5 2 0 11 5 3 0 12 5 5 0 r8ge_to_r8crs_test(): r8ge_to_r8crs() converts a general storage (GE) matrix to compressed row storage (CRS). The R8GE matrix: Col: 1 2 3 4 5 Row --- 1 2 3 0 0 0 2 3 0 4 0 6 3 0 -1 -3 2 0 4 0 0 1 0 0 5 0 4 2 0 1 The R8CRS matrix: # I J A ---- ---- ---- -------------- 1 1 1 2 2 1 2 3 3 2 1 3 4 2 3 4 5 2 5 6 6 3 2 -1 7 3 3 -3 8 3 4 2 9 4 3 1 10 5 2 4 11 5 3 2 12 5 5 1 r8crs_test(): Normal end of execution. 19-Mar-2026 14:49:20