15-May-2025 20:34:24 r8row_test(): MATLAB/Octave version 6.4.0 Test r8row() I4_LOG_10_TEST(): I4_LOG_10: whole part of log base 10, X, I4_LOG_10 0 0 1 0 2 0 3 0 9 0 10 1 11 1 99 1 101 2 -1 0 -2 0 -3 0 -9 0 I4MAT_PRINT_TEST(): I4MAT_PRINT prints an I4MAT. The I4MAT: Col: 1 2 3 4 Row 1: 11 12 13 14 2: 21 22 23 24 3: 31 32 33 34 4: 41 42 43 44 5: 51 52 53 54 6: 61 62 63 64 I4MAT_PRINT_SOME_TEST(): I4MAT_PRINT_SOME prints some of an I4MAT. The I4MAT, rows 2:4, cols 1:2: Col: 1 2 Row 2: 21 22 3: 31 32 4: 41 42 I4VEC_PRINT_TEST() I4VEC_PRINT prints an I4VEC The I4VEC: 1: 91 2: 92 3: 93 4: 94 R8ROW_COMPARE_TEST(): R8ROW_COMPARE compares rows of an R8ROW, returning -1, 0 or +1 for comparison. Matrix A: Col: 1 2 3 4 5 Row 1 : 2 0 1 2 0 2 : 0 1 2 0 1 3 : 1 2 0 1 2 4 : 2 0 1 2 0 5 : 0 1 2 0 1 6 : 1 2 0 1 2 C(I,J) = Row I compare Row J: Col: 1 2 3 4 5 6 Row 1: 0 1 1 0 1 1 2: -1 0 -1 -1 0 -1 3: -1 1 0 -1 1 0 4: 0 1 1 0 1 1 5: -1 0 -1 -1 0 -1 6: -1 1 0 -1 1 0 R8ROW_INDICATOR_TEST() R8ROW_INDICATOR returns an R8ROW indicator matrix. Indicator matrix: Col: 1 2 3 4 Row 1 : 11 12 13 14 2 : 21 22 23 24 3 : 31 32 33 34 4 : 41 42 43 44 5 : 51 52 53 54 R8ROW_MAX_TEST(): R8ROW_MAX computes maximums of an R8ROW The original matrix: Col: 1 2 3 4 Row 1 : 1 2 3 4 2 : 5 6 7 8 3 : 9 10 11 12 Row maximums: 1: 4 2: 8 3: 12 R8ROW_MEAN_TEST(): For a R8ROW (a matrix regarded as rows): R8ROW_MEAN computes means; The original matrix: Col: 1 2 3 4 Row 1 : 1 2 3 4 2 : 5 6 7 8 3 : 9 10 11 12 Row means: 1: 2.5 2: 6.5 3: 10.5 R8ROW_MIN_TEST(): R8ROW_MIN computes minimums of an R8ROW. The original matrix: Col: 1 2 3 4 Row 1 : 1 2 3 4 2 : 5 6 7 8 3 : 9 10 11 12 Row minimums: 1: 1 2: 5 3: 9 R8ROW_PART_QUICK_A_TEST R8ROW_PART_QUICK_A partitions an R8ROW matrix. The matrix: Col: 1 2 Row 1 : 2 4 2 : 8 8 3 : 6 2 4 : 0 2 5 : 10 6 6 : 10 0 7 : 0 6 8 : 5 8 L = 2 R = 4 The partitioned matrix: Col: 1 2 Row 1 : 0 6 2 : 0 2 3 : 2 4 4 : 10 6 5 : 10 0 6 : 6 2 7 : 5 8 8 : 8 8 R8ROW_PRINT_TEST R8ROW_PRINT prints an R8ROW. The R8ROW: Col: 1 2 3 4 Row 1 : 11 12 13 14 2 : 21 22 23 24 3 : 31 32 33 34 4 : 41 42 43 44 5 : 51 52 53 54 6 : 61 62 63 64 R8ROW_PRINT_SOME_TEST R8ROW_PRINT_SOME prints some of an R8ROW. The R8ROW, rows 2:4, cols 1:2: Col: 1 2 Row 2 : 21 22 3 : 31 32 4 : 41 42 r8row_running_average_test(): r8row_running_average() returns M sets of running averages of an MxN R8ROW. Random R8ROW: Col: 1 2 3 4 5 Row 1 : -4.98971 7.36013 8.52655 -2.77174 -1.51534 2 : -4.2337 2.67926 4.19557 -4.08094 7.15123 3 : -1.46845 4.07172 4.57138 -2.04991 8.17012 4 : 6.44006 5.1234 -4.75377 -4.68679 5.60999 5 : 7.15769 -0.235034 6.39939 1.83919 3.25269 Col: 6 7 8 9 10 Row 1 : -0.479351 -1.75199 8.77984 7.58663 -3.82983 2 : -3.09874 -0.433096 7.21029 8.9054 4.78225 3 : -1.93695 9.6433 5.95858 -1.67346 1.27453 4 : 7.55672 9.85021 -0.582816 -1.03439 7.84989 5 : -0.773624 9.58398 -2.38087 -0.0570295 5.46331 Running averages: Col: 1 2 3 4 5 Row 1 : 0 -4.98971 1.18521 3.63232 2.03131 2 : 0 -4.2337 -0.777221 0.880377 -0.359953 3 : 0 -1.46845 1.30163 2.39155 1.28118 4 : 0 6.44006 5.78173 2.2699 0.530725 5 : 0 7.15769 3.46133 4.44068 3.79031 Col: 6 7 8 9 10 Row 1 : 1.32198 1.02176 0.625506 1.6448 2.305 2 : 1.14228 0.435447 0.311369 1.17373 2.03281 3 : 2.65897 1.89298 3.00017 3.36997 2.80959 4 : 1.54658 2.54827 3.5914 3.06963 2.61362 5 : 3.68279 2.94005 3.88918 3.10543 2.75404 Col: 11 Row 1 : 1.69152 2 : 2.30775 3 : 2.65609 4 : 3.13725 5 : 3.02497 r8row_running_sum_test(): r8row_running_sum() returns the M running sums of an R8ROW. Random R8ROW: Col: 1 2 3 4 5 Row 1 : -2.35266 -0.523854 9.41974 1.2701 9.33872 2 : 3.75341 1.89905 9.75233 5.8056 1.00804 3 : 9.59999 -4.2663 5.82094 9.41831 2.63842 4 : 1.24141 2.32075 2.37995 4.23585 8.63993 5 : 3.74759 -1.66665 9.43426 6.53974 1.09097 Col: 6 7 8 9 10 Row 1 : 8.56703 7.21647 3.23728 -3.00176 8.15822 2 : 9.70237 3.90236 0.0905449 1.09663 6.66533 3 : 0.781846 7.05426 5.23766 -1.88747 9.31521 4 : -0.447689 6.8526 9.10714 3.3638 9.60659 5 : 7.05843 6.71677 6.03327 9.08885 3.42593 Running sums: Col: 1 2 3 4 5 Row 1 : 0 -2.35266 -2.87652 6.54323 7.81333 2 : 0 3.75341 5.65246 15.4048 21.2104 3 : 0 9.59999 5.33369 11.1546 20.5729 4 : 0 1.24141 3.56216 5.9421 10.178 5 : 0 3.74759 2.08094 11.5152 18.0549 Col: 6 7 8 9 10 Row 1 : 17.152 25.7191 32.9355 36.1728 33.1711 2 : 22.2184 31.9208 35.8232 35.9137 37.0103 3 : 23.2114 23.9932 31.0475 36.2851 34.3977 4 : 18.8179 18.3702 25.2228 34.3299 37.6937 5 : 19.1459 26.2043 32.9211 38.9544 48.0432 Col: 11 Row 1 : 41.3293 2 : 43.6757 3 : 43.7129 4 : 47.3003 5 : 51.4692 R8ROW_SORT_HEAP_A_TEST(): R8ROW_SORT_HEAP_A ascending sorts an R8ROW using heap sort. Initial matrix: Col: 1 2 3 4 Row 1 : 8.89948 5.37871 5.20045 7.48029 2 : 3.83567 7.97166 5.98784 8.19304 3 : 2.69327 4.26979 6.18637 7.45431 4 : 4.83155 5.24796 9.34985 8.88586 5 : 2.82813 4.03913 2.23022 5.43903 Rows of matrix ascending sorted: Col: 1 2 3 4 Row 1 : 2.69327 4.26979 6.18637 7.45431 2 : 2.82813 4.03913 2.23022 5.43903 3 : 3.83567 7.97166 5.98784 8.19304 4 : 4.83155 5.24796 9.34985 8.88586 5 : 8.89948 5.37871 5.20045 7.48029 r8row_sort_quick_a_test(): r8row_sort_quick_a() does a quicksort of an R8ROW. The unsorted matrix: Col: 1 2 3 Row 1 : 0.149849 5.95427 4.75324 2 : 7.31044 9.93454 7.0843 3 : 3.73914 4.75317 0.00828873 4 : 6.34219 6.02659 1.10702 5 : 5.94926 6.13178 0.0996083 6 : 0.709467 6.86598 0.538543 7 : 5.00008 9.51247 1.82991 8 : 3.24996 0.155697 6.82466 9 : 8.23875 5.75839 0.187684 10 : 7.0056 7.71212 6.67791 The sorted matrix: Col: 1 2 3 Row 1 : 0.149849 5.95427 4.75324 2 : 0.709467 6.86598 0.538543 3 : 3.24996 0.155697 6.82466 4 : 3.73914 4.75317 0.00828873 5 : 5.00008 9.51247 1.82991 6 : 5.94926 6.13178 0.0996083 7 : 6.34219 6.02659 1.10702 8 : 7.0056 7.71212 6.67791 9 : 7.31044 9.93454 7.0843 10 : 8.23875 5.75839 0.187684 R8ROW_SUM_TEST(): R8ROW_SUM computes sums of an R8ROW; The original matrix: Col: 1 2 3 4 Row 1 : 1 2 3 4 2 : 5 6 7 8 3 : 9 10 11 12 Row sums: 1: 10 2: 26 3: 42 R8ROW_SWAP_TEST(): R8ROW_SWAP swaps two rows of an R8ROW. The original matrix: Col: 1 2 3 4 Row 1 : 1 2 3 4 2 : 5 6 7 8 3 : 9 10 11 12 Swap rows 1 and 3 The modified matrix: Col: 1 2 3 4 Row 1 : 9 10 11 12 2 : 5 6 7 8 3 : 1 2 3 4 R8ROW_TO_R8VEC_TEST(): R8ROW_TO_R8VEC converts an R8ROW to an R8VEC. The array of rows: Col: 1 2 3 4 Row 1 : 11 12 13 14 2 : 21 22 23 24 3 : 31 32 33 34 The resulting vector of rows: 1: 11 2: 12 3: 13 4: 14 5: 21 6: 22 7: 23 8: 24 9: 31 10: 32 11: 33 12: 34 R8ROW_TRANSPOSE_PRINT_TEST R8ROW_TRANSPOSE_PRINT prints a R8ROW, transposed. Matrix row order M = 5 Matrix column order N = 4 The matrix A: Col: 1 2 3 4 Row 1 : 11 12 13 14 2 : 21 22 23 24 3 : 31 32 33 34 4 : 41 42 43 44 5 : 51 52 53 54 The transposed matrix A: Row: 1 2 3 4 5 Col 1: 11 21 31 41 51 2: 12 22 32 42 52 3: 13 23 33 43 53 4: 14 24 34 44 54 R8ROW_TRANSPOSE_PRINT_SOME_TEST R8ROW_TRANSPOSE_PRINT_SOME prints some of an R8ROW, transposed. Matrix row order M = 5 Matrix column order N = 4 The matrix A: Col: 1 2 3 4 Row 1 : 11 12 13 14 2 : 21 22 23 24 3 : 31 32 33 34 4 : 41 42 43 44 5 : 51 52 53 54 The transposed matrix A, rows 1:3, cols 2:3: Row: 1 2 3 Col 2: 12 22 32 3: 13 23 33 r8row_uniform_ab_test(): r8row_uniform_ab() sets an R8ROW to random values in [A,B]. The random matrix: Col: 1 2 3 4 Row 1 : 6.10483 2.27991 2.69424 7.41184 2 : 6.15216 2.32436 5.05967 5.46232 3 : 7.591 4.60107 9.76362 5.83288 4 : 7.68593 5.18561 2.26083 9.22713 5 : 8.97423 9.85554 6.83925 9.40392 R8ROW_VARIANCE_TEST(): R8ROW_VARIANCE computes variances of an R8ROW. The original matrix: Col: 1 2 3 4 Row 1 : 1 2 3 4 2 : 5 6 7 8 3 : 9 10 11 12 Row variances: 1: 1.66667 2: 1.66667 3: 1.66667 R8VEC_PRINT_TEST(): R8VEC_PRINT prints an R8VEC. The R8VEC: 1: 123.456 2: 5e-06 3: -1e+06 4: 3.14159 SORT_HEAP_EXTERNAL_TEST SORT_HEAP_EXTERNAL sorts objects externally. Unsorted array: 1: 18 2: 3 3: 11 4: 4 5: 16 6: 10 7: 14 8: 8 9: 6 10: 18 11: 6 12: 10 13: 9 14: 9 15: 18 16: 11 17: 3 18: 12 19: 15 20: 1 Sorted array: 1: 1 2: 3 3: 3 4: 4 5: 6 6: 6 7: 8 8: 9 9: 9 10: 10 11: 10 12: 11 13: 11 14: 12 15: 14 16: 15 17: 16 18: 18 19: 18 20: 18 r8row_test(): Normal end of execution. 15-May-2025 20:34:24