Tue May 20 22:27:34 2025 r8col_test(): python version: 3.10.12 numpy version: 1.26.4 Test r8col(). 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 r8col_flip_test(): r8col_flip() flips the columns of an R8COL. Matrix A: Col: 0 1 2 3 Row 0 : 0.862969 0.535279 0.844693 0.77043 1 : 0.51395 0.476289 0.742829 0.735061 2 : 0.348341 0.488099 0.907752 0.188134 3 : 0.828165 0.715007 0.227623 0.776422 4 : 0.258705 0.974777 0.307382 0.329978 Matrix after column flipping: Col: 0 1 2 3 Row 0 : 0.258705 0.974777 0.307382 0.329978 1 : 0.828165 0.715007 0.227623 0.776422 2 : 0.348341 0.488099 0.907752 0.188134 3 : 0.51395 0.476289 0.742829 0.735061 4 : 0.862969 0.535279 0.844693 0.77043 r8col_indicator_test r8col_indicator creates an "indicator" R8COL. The indicator matrix: Col: 0 1 2 3 Row 0 : 11 12 13 14 1 : 21 22 23 24 2 : 31 32 33 34 3 : 41 42 43 44 4 : 51 52 53 54 r8col_max_test For an R8COL, an array of column vectors r8col_max computes maximums The array: Col: 0 1 2 3 Row 0 : 1 2 3 4 1 : 5 6 7 8 2 : 9 10 11 12 Column maximums: 0: 9 1: 10 2: 11 3: 12 r8col_mean_test For an R8COL, an array of column vectors r8col_mean computes means The array: Col: 0 1 2 3 Row 0 : 1 2 3 4 1 : 5 6 7 8 2 : 9 10 11 12 Column means: 0: 5 1: 6 2: 7 3: 8 r8col_min_test For an R8COL, an array of column vectors r8col_min computes minimums The array: Col: 0 1 2 3 Row 0 : 1 2 3 4 1 : 5 6 7 8 2 : 9 10 11 12 Column minimums: 0: 1 1: 2 2: 3 3: 4 r8col_normalize_li_test(): r8col_normalize_li() normalizes an array A, dividing each column by its maximum element. Matrix A: Col: 0 1 2 3 Row 0 : -3.19092 0.554103 0.776105 1.65736 1 : -1.61626 -4.66991 -1.50616 -2.71307 2 : 1.64794 2.55637 2.08516 -4.59224 3 : 0.926143 0.993626 -4.19328 -4.35548 4 : 0.0230972 1.23479 1.72233 -4.16178 Matrix after column LI normalization: Col: 0 1 2 3 Row 0 : 1 -0.118654 -0.185083 -0.360905 1 : 0.50652 1 0.359184 0.590794 2 : -0.516446 -0.547412 -0.497261 1 3 : -0.290243 -0.212772 1 0.948444 4 : -0.00723843 -0.264414 -0.410735 0.906263 r8col_print_test r8col_print prints an R8COL. Here is an R8COL: Col: 0 1 2 3 4 Row 0 : 11 12 13 14 15 1 : 21 22 23 24 25 2 : 31 32 33 34 35 3 : 41 42 43 44 45 Col: 5 Row 0 : 16 1 : 26 2 : 36 3 : 46 r8col_print_some_test r8col_print_some prints some of an R8COL. Here is an R8COL: Col: 3 4 5 Row 0 : 14 15 16 1 : 24 25 26 2 : 34 35 36 r8col_sum_test For an R8COL, an array of column vectors r8col_sum computes sums The array: Col: 0 1 2 3 Row 0 : 1 2 3 4 1 : 5 6 7 8 2 : 9 10 11 12 The column sums: 0: 15 1: 18 2: 21 3: 24 r8col_swap_test r8col_swap swaps two columns of an R8COL. The array: Col: 0 1 2 3 Row 0 : 11 12 13 14 1 : 21 22 23 24 2 : 31 32 33 34 Swap columns 0 and 2 The updated matrix: Col: 0 1 2 3 Row 0 : 13 12 11 14 1 : 23 22 21 24 2 : 33 32 31 34 r8col_to_r8vec_test r8col_to_r8vec converts an R8COL matrix to an R8VEC vector. R8COL matrix: Col: 0 1 2 Row 0 : 11 12 13 1 : 21 22 23 2 : 31 32 33 3 : 41 42 43 Corresponding R8VEC vector: 0: 11 1: 21 2: 31 3: 41 4: 12 5: 22 6: 32 7: 42 8: 13 9: 23 10: 33 11: 43 r8col_transpose_print_test r8col_transpose_print prints an R8COL. Here is an R8COL, transposed: Row: 0 1 2 3 Col 0 : 11 21 31 41 1 : 12 22 32 42 2 : 13 23 33 43 r8col_transpose_print_some_test r8col_transpose_print_some prints some of an R8COL, transposed. R8COL, rows 0:2, cols 3:5: Row: 0 1 2 Col 3 : 14 24 34 4 : 15 25 35 5 : 16 26 36 r8col_uniform_01_test() r8col_uniform_01() computes a random R8COL. Random R8COL: Col: 0 1 2 3 Row 0 : 0.788881 0.740817 0.484227 0.28099 1 : 0.204141 0.77212 0.455099 0.70851 2 : 0.455468 0.951838 0.928561 0.527034 3 : 0.418059 0.771089 0.740939 0.228536 4 : 0.298812 0.0130882 0.570813 0.80777 r8col_uniform_ab_test() r8col_uniform_ab() computes a random R8COL. -1 <= X <= 5 Random R8COL: Col: 0 1 2 3 Row 0 : 4.64626 1.72019 4.08027 -0.0376308 1 : 2.38311 1.49176 4.57091 -0.0248913 2 : -0.152513 -0.297999 0.480886 4.34903 3 : 3.11096 -0.225525 0.519239 1.73753 4 : 0.86398 1.23713 -0.0242768 4.41774 r8col_uniform_abvec_test(): r8col_uniform_abvec() computes a random scaled R8COL. Col Min Max 0 -1 1 1 0 1 2 50 55 3 100 100.1 4 17 20 Random R8COL: Col: 0 1 2 3 Row 0 : -0.172138 -0.176918 -0.888006 0.024744 1 : 0.93569 0.312774 0.569806 0.914528 2 : 50.8713 50.1289 52.0404 53.6199 3 : 100.035 100.036 100.026 100.079 4 : 19.3102 18.5838 17.0865 19.3487 r8col_variance_test For an R8COL, an array of column vectors r8col_variance computes variances The array: Col: 0 1 2 3 Row 0 : 1 2 3 4 1 : 5 6 7 8 2 : 9 10 11 12 Column variances: 0: 16 1: 16 2: 16 3: 16 r8col_test(): Normal end of execution. Tue May 20 22:27:34 2025