03-Mar-2019 14:27:18 r8row_test MATLAB version 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 I4VEC_UNIFORM_AB_TEST I4VEC_UNIFORM_AB computes pseudorandom values in an interval [A,B]. The lower endpoint A = -100.000000 The upper endpoint B = 200.000000 The initial seed is 123456789 The random vector: 1: -35 2: 187 3: 149 4: 69 5: 25 6: -81 7: -23 8: -67 9: -87 10: 90 11: -82 12: 35 13: 20 14: 127 15: 139 16: -100 17: 170 18: 5 19: -72 20: -96 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 : -1.72373 -4.00822 -4.07409 -4.97242 7.88645 2 : 9.34476 -1.13633 1.74308 8.46256 7.61271 3 : 7.44264 -3.35065 1.01959 0.261285 -3.15344 4 : 3.42543 -4.34257 6.3201 -3.58183 -4.88731 5 : 1.22961 4.50949 6.9593 -4.79575 -1.09546 Col: 6 7 8 9 10 Row 1 : 8.68726 5.381 3.96875 3.61549 5.71707 2 : -3.29504 3.42494 -2.16568 0.5054 -3.2344 3 : 0.27443 7.91824 6.42238 4.25807 -0.510063 4 : 7.34331 1.80691 0.954827 0.422931 7.37504 5 : -0.993016 8.67966 -2.22029 -1.80605 7.3699 Running averages: Col: 1 2 3 4 5 Row 1 : 0 -1.72373 -2.86597 -3.26868 -3.69462 2 : 0 9.34476 4.10422 3.31717 4.60352 3 : 0 7.44264 2.046 1.70386 1.34322 4 : 0 3.42543 -0.458567 1.80099 0.455285 5 : 0 1.22961 2.86955 4.2328 1.97566 Col: 6 7 8 9 10 Row 1 : -1.3784 0.299208 1.02518 1.39312 1.64005 2 : 5.20536 3.78862 3.73667 2.99888 2.72182 3 : 0.443886 0.415643 1.48744 2.10431 2.34362 4 : -0.613235 0.712856 0.869149 0.879859 0.829089 5 : 1.36144 0.96903 2.07055 1.53419 1.16306 Col: 11 Row 1 : 2.04776 2 : 2.1262 3 : 2.05825 4 : 1.48368 5 : 1.78374 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 : -1.72373 -4.00822 -4.07409 -4.97242 7.88645 2 : 9.34476 -1.13633 1.74308 8.46256 7.61271 3 : 7.44264 -3.35065 1.01959 0.261285 -3.15344 4 : 3.42543 -4.34257 6.3201 -3.58183 -4.88731 5 : 1.22961 4.50949 6.9593 -4.79575 -1.09546 Col: 6 7 8 9 10 Row 1 : 8.68726 5.381 3.96875 3.61549 5.71707 2 : -3.29504 3.42494 -2.16568 0.5054 -3.2344 3 : 0.27443 7.91824 6.42238 4.25807 -0.510063 4 : 7.34331 1.80691 0.954827 0.422931 7.37504 5 : -0.993016 8.67966 -2.22029 -1.80605 7.3699 Running sums: Col: 1 2 3 4 5 Row 1 : 0 -1.72373 -5.73194 -9.80604 -14.7785 2 : 0 9.34476 8.20843 9.95151 18.4141 3 : 0 7.44264 4.09199 5.11158 5.37287 4 : 0 3.42543 -0.917133 5.40297 1.82114 5 : 0 1.22961 5.73909 12.6984 7.90265 Col: 6 7 8 9 10 Row 1 : -6.89201 1.79525 7.17625 11.145 14.7605 2 : 26.0268 22.7317 26.1567 23.991 24.4964 3 : 2.21943 2.49386 10.4121 16.8345 21.0925 4 : -3.06617 4.27714 6.08404 7.03887 7.4618 5 : 6.80719 5.81418 14.4938 12.2735 10.4675 Col: 11 Row 1 : 20.4776 2 : 21.262 3 : 20.5825 4 : 14.8368 5 : 17.8374 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.74735 2.52895 2.49382 2.01471 2 : 9.65054 4.06062 5.59631 9.18003 3 : 8.63607 2.87965 5.21045 4.80602 4 : 6.49356 2.35063 8.03739 2.75636 5 : 5.32246 7.07173 8.3783 2.10894 Rows of matrix ascending sorted: Col: 1 2 3 4 Row 1 : 3.74735 2.52895 2.49382 2.01471 2 : 5.32246 7.07173 8.3783 2.10894 3 : 6.49356 2.35063 8.03739 2.75636 4 : 8.63607 2.87965 5.21045 4.80602 5 : 9.65054 4.06062 5.59631 9.18003 R8ROW_SORT_QUICK_A_TEST R8ROW_SORT_QUICK_A does a quicksort of an R8ROW. The unsorted matrix: Col: 1 2 3 Row 1 : 2.18418 0.617272 8.59097 2 : 9.56318 4.49539 8.40847 3 : 8.29509 4.01306 1.23104 4 : 5.61695 7.54673 0.0751236 5 : 4.15307 7.97287 2.60303 6 : 0.661187 0.0183837 9.12484 7 : 2.57578 8.97504 1.13664 8 : 1.09957 3.50752 3.51629 9 : 0.43829 0.945448 8.22887 10 : 6.33966 0.136169 2.67132 The sorted matrix: Col: 1 2 3 Row 1 : 0.43829 0.945448 8.22887 2 : 0.661187 0.0183837 9.12484 3 : 1.09957 3.50752 3.51629 4 : 2.18418 0.617272 8.59097 5 : 2.57578 8.97504 1.13664 6 : 4.15307 7.97287 2.60303 7 : 5.61695 7.54673 0.0751236 8 : 6.33966 0.136169 2.67132 9 : 8.29509 4.01306 1.23104 10 : 9.56318 4.49539 8.40847 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]. Using initial random number seed = 123456789 The random matrix: Col: 1 2 3 4 Row 1 : 3.74735 2.52895 2.49382 2.01471 2 : 9.65054 4.06062 5.59631 9.18003 3 : 8.63607 2.87965 5.21045 4.80602 4 : 6.49356 2.35063 8.03739 2.75636 5 : 5.32246 7.07173 8.3783 2.10894 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: 20 3: 17 4: 12 5: 9 6: 2 7: 6 8: 3 9: 1 10: 13 11: 2 12: 9 13: 9 14: 16 15: 16 16: 1 17: 18 18: 8 19: 2 20: 1 Sorted array: 1: 1 2: 1 3: 1 4: 2 5: 2 6: 2 7: 3 8: 5 9: 6 10: 8 11: 9 12: 9 13: 9 14: 12 15: 13 16: 16 17: 16 18: 17 19: 18 20: 20 r8row_test Normal end of execution. 03-Mar-2019 14:27:18