08-Oct-2025 14:15:23 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.69904 -1.93023 6.93459 5.2274 1.4505 2 : 4.07087 3.08322 3.04274 4.35401 4.024 3 : 8.80388 -1.57099 1.05904 -2.106 1.79708 4 : -1.13849 0.418234 -4.67427 7.85024 3.87907 5 : 7.28074 -1.04044 -2.67832 8.77728 -1.80123 Col: 6 7 8 9 10 Row 1 : 8.80624 -4.39833 5.42403 9.87776 4.47398 2 : 2.16948 6.87764 -4.75135 6.49761 -0.928198 3 : 2.7161 4.80758 3.21464 2.08584 -1.93239 4 : 5.17133 0.389375 0.324653 5.78098 6.7974 5 : -2.5557 -2.65289 1.36228 0.259924 1.64673 Running averages: Col: 1 2 3 4 5 Row 1 : 0 -4.69904 -3.31464 0.101772 1.38318 2 : 0 4.07087 3.57704 3.39894 3.63771 3 : 0 8.80388 3.61644 2.76398 1.54648 4 : 0 -1.13849 -0.360126 -1.79817 0.613931 5 : 0 7.28074 3.12015 1.18733 3.08482 Col: 6 7 8 9 10 Row 1 : 1.39664 2.63158 1.6273 2.10189 2.96588 2 : 3.71497 3.45739 3.94599 2.85883 3.26313 3 : 1.5966 1.78318 2.21524 2.34017 2.31191 4 : 1.26696 1.91769 1.69936 1.52752 2.00013 5 : 2.10761 1.33039 0.761349 0.836465 0.772405 Col: 11 Row 1 : 3.11669 2 : 2.844 3 : 1.88748 4 : 2.47985 5 : 0.859837 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.93837 6.65223 -3.39623 8.36356 5.82882 2 : -1.63313 1.942 -1.75526 2.48738 3.50109 3 : 7.2135 8.9335 8.78933 1.9736 5.30367 4 : 6.75457 0.212861 7.97915 3.83811 1.10352 5 : -0.572163 3.484 -3.41467 6.04283 7.74983 Col: 6 7 8 9 10 Row 1 : -4.91938 -3.62758 9.7807 -0.976625 5.70594 2 : 5.47182 1.88109 0.100202 8.54452 -2.86797 3 : 5.21546 7.92916 2.42453 -3.31693 -3.46738 4 : 9.09925 3.7012 -3.64732 -1.27213 3.65387 5 : 2.27782 -4.39131 -0.940546 6.706 -3.67049 Running sums: Col: 1 2 3 4 5 Row 1 : 0 -2.93837 3.71386 0.317627 8.68119 2 : 0 -1.63313 0.308861 -1.4464 1.04099 3 : 0 7.2135 16.147 24.9363 26.9099 4 : 0 6.75457 6.96743 14.9466 18.7847 5 : 0 -0.572163 2.91183 -0.502835 5.53999 Col: 6 7 8 9 10 Row 1 : 14.51 9.59063 5.96305 15.7437 14.7671 2 : 4.54207 10.0139 11.895 11.9952 20.5397 3 : 32.2136 37.4291 45.3582 47.7828 44.4658 4 : 19.8882 28.9875 32.6887 29.0413 27.7692 5 : 13.2898 15.5676 11.1763 10.2358 16.9418 Col: 11 Row 1 : 20.4731 2 : 17.6717 3 : 40.9984 4 : 31.4231 5 : 13.2713 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 : 3.74142 4.667 3.99066 6.03877 2 : 3.74113 7.20421 5.08871 5.75501 3 : 9.52224 4.96724 5.08729 8.21721 4 : 5.41078 9.89715 2.1791 6.16687 5 : 6.59914 3.81678 5.4671 6.19344 Rows of matrix ascending sorted: Col: 1 2 3 4 Row 1 : 3.74113 7.20421 5.08871 5.75501 2 : 3.74142 4.667 3.99066 6.03877 3 : 5.41078 9.89715 2.1791 6.16687 4 : 6.59914 3.81678 5.4671 6.19344 5 : 9.52224 4.96724 5.08729 8.21721 r8row_sort_quick_a_test(): r8row_sort_quick_a() does a quicksort of an R8ROW. The unsorted matrix: Col: 1 2 3 Row 1 : 9.87241 6.05617 6.57885 2 : 1.88126 3.57195 8.63105 3 : 0.117741 4.26152 9.76837 4 : 5.62079 6.32425 4.58496 5 : 7.42713 6.31834 0.655798 6 : 2.33225 5.73565 6.11917 7 : 6.25367 4.74535 0.131413 8 : 8.43584 9.08882 2.44051 9 : 1.5654 7.44382 1.96724 10 : 1.26087 1.39914 7.389 The sorted matrix: Col: 1 2 3 Row 1 : 0.117741 4.26152 9.76837 2 : 1.26087 1.39914 7.389 3 : 1.5654 7.44382 1.96724 4 : 1.88126 3.57195 8.63105 5 : 2.33225 5.73565 6.11917 6 : 5.62079 6.32425 4.58496 7 : 6.25367 4.74535 0.131413 8 : 7.42713 6.31834 0.655798 9 : 8.43584 9.08882 2.44051 10 : 9.87241 6.05617 6.57885 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.88011 5.47698 8.26621 4.48426 2 : 5.00433 4.68918 2.87593 8.19666 3 : 4.40436 9.75001 7.92956 3.12612 4 : 7.09435 4.86804 4.82328 3.14195 5 : 9.58722 8.20775 6.99426 3.74082 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: 20 2: 19 3: 13 4: 3 5: 2 6: 10 7: 5 8: 9 9: 20 10: 4 11: 15 12: 6 13: 9 14: 20 15: 2 16: 16 17: 13 18: 18 19: 20 20: 20 Sorted array: 1: 2 2: 2 3: 3 4: 4 5: 5 6: 6 7: 9 8: 9 9: 10 10: 13 11: 13 12: 15 13: 16 14: 18 15: 19 16: 20 17: 20 18: 20 19: 20 20: 20 r8row_test(): Normal end of execution. 08-Oct-2025 14:15:23