21-May-2023 13:41:06 r8row_test(): MATLAB/Octave version 5.2.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 : 8.17546 -0.262888 4.59751 -1.18558 8.68077 2 : 3.09046 8.28133 1.4422 -0.0781353 9.16742 3 : 6.0648 1.48326 6.35653 3.55953 7.6289 4 : 4.81953 4.26344 8.66138 0.0733702 -1.83405 5 : -4.10579 -0.87291 -3.70198 7.42382 6.37353 Col: 6 7 8 9 10 Row 1 : 7.42374 -4.53097 3.56226 9.83564 1.30981 2 : -4.53604 2.78226 -1.87784 3.8098 4.75902 3 : -4.62505 6.66585 4.0018 5.67484 3.30974 4 : -3.86784 -3.11477 9.59456 -0.604739 -3.42526 5 : 1.05157 3.03916 2.80861 4.21778 1.69023 Running averages: Col: 1 2 3 4 5 Row 1 : 0 8.17546 3.95628 4.17003 2.83112 2 : 0 3.09046 5.6859 4.27133 3.18397 3 : 0 6.0648 3.77403 4.63486 4.36603 4 : 0 4.81953 4.54149 5.91479 4.45443 5 : 0 -4.10579 -2.48935 -2.89356 -0.314215 Col: 6 7 8 9 10 Row 1 : 4.00105 4.5715 3.27115 3.30754 4.03288 2 : 4.38066 2.89454 2.8785 2.28396 2.4535 3 : 5.0186 3.41133 3.87626 3.89195 4.09005 4 : 3.19674 2.01931 1.28587 2.32445 1.99899 5 : 1.02333 1.02804 1.31534 1.502 1.80375 Col: 11 Row 1 : 3.76057 2 : 2.68405 3 : 4.01202 4 : 1.45656 5 : 1.7924 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 : 7.60073 9.97945 -3.92943 -4.74303 3.77406 2 : -3.45521 6.60054 6.8468 -4.07712 -0.940055 3 : 4.95862 -1.72415 7.64076 9.26497 4.19146 4 : 1.24543 2.5387 -0.164574 4.57641 -4.23294 5 : 5.2572 9.07891 0.506761 1.91148 -3.70054 Col: 6 7 8 9 10 Row 1 : 4.2435 -4.76334 4.60511 0.243413 4.1686 2 : -4.36523 3.95632 8.29506 0.839089 1.43895 3 : -0.800624 4.02735 1.50313 8.2933 3.79813 4 : 7.61955 1.38798 -3.61424 5.97892 3.10714 5 : -0.0413921 5.94095 9.43643 3.16812 4.01003 Running sums: Col: 1 2 3 4 5 Row 1 : 0 7.60073 17.5802 13.6508 8.90774 2 : 0 -3.45521 3.14533 9.99213 5.91501 3 : 0 4.95862 3.23448 10.8752 20.1402 4 : 0 1.24543 3.78413 3.61955 8.19596 5 : 0 5.2572 14.3361 14.8429 16.7544 Col: 6 7 8 9 10 Row 1 : 12.6818 16.9253 12.162 16.7671 17.0105 2 : 4.97496 0.60973 4.56605 12.8611 13.7002 3 : 24.3317 23.531 27.5584 29.0615 37.3548 4 : 3.96302 11.5826 12.9706 9.35631 15.3352 5 : 13.0538 13.0124 18.9534 28.3898 31.5579 Col: 11 Row 1 : 21.1791 2 : 15.1392 3 : 41.153 4 : 18.4424 5 : 35.568 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 : 6.65731 7.2116 8.86586 8.82111 2 : 2.55043 4.12672 3.73055 6.46721 3 : 8.62005 4.45528 2.02193 4.54627 4 : 9.11815 3.48191 7.78931 9.02367 5 : 5.13 3.61776 3.29993 7.73084 Rows of matrix ascending sorted: Col: 1 2 3 4 Row 1 : 2.55043 4.12672 3.73055 6.46721 2 : 5.13 3.61776 3.29993 7.73084 3 : 6.65731 7.2116 8.86586 8.82111 4 : 8.62005 4.45528 2.02193 4.54627 5 : 9.11815 3.48191 7.78931 9.02367 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.97866 4.78815 5.63061 2 : 4.44888 8.40092 8.9628 3 : 2.65103 8.27799 4.65342 4 : 6.42259 4.23854 3.30741 5 : 5.09419 8.33448 1.51682 6 : 9.40238 1.04391 5.40117 7 : 5.5859 6.91074 0.651638 8 : 2.94487 6.38917 3.59956 9 : 4.12849 6.64255 0.249811 10 : 9.05932 6.84406 3.69888 The sorted matrix: Col: 1 2 3 Row 1 : 2.65103 8.27799 4.65342 2 : 2.94487 6.38917 3.59956 3 : 4.12849 6.64255 0.249811 4 : 4.44888 8.40092 8.9628 5 : 5.09419 8.33448 1.51682 6 : 5.5859 6.91074 0.651638 7 : 6.42259 4.23854 3.30741 8 : 9.05932 6.84406 3.69888 9 : 9.40238 1.04391 5.40117 10 : 9.97866 4.78815 5.63061 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 : 2.0091 7.52404 6.91249 8.06712 2 : 4.15023 6.94725 8.03323 2.8554 3 : 6.17181 8.1264 7.67125 8.75766 4 : 4.31175 8.78707 9.45501 7.17629 5 : 5.00073 6.84096 5.05043 5.33949 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: 5 2: 16 3: 20 4: 19 5: 9 6: 16 7: 12 8: 17 9: 3 10: 1 11: 17 12: 13 13: 11 14: 14 15: 18 16: 1 17: 9 18: 16 19: 16 20: 19 Sorted array: 1: 1 2: 1 3: 3 4: 5 5: 9 6: 9 7: 11 8: 12 9: 13 10: 14 11: 16 12: 16 13: 16 14: 16 15: 17 16: 17 17: 18 18: 19 19: 19 20: 20 r8row_test(): Normal end of execution. 21-May-2023 13:41:06