06 May 2024 02:00:37 PM ppc_image_analysis_test(): C version Test ppc_image_analysis(). clip_matrix_test(): clip matrix() forces the entries of a matrix to be integers within a given range. Random matrix: 214.248 100.568 199.69 203.602 232.47 50.3756 85.4818 195.899 70.8326 141.262 121.736 160.362 93.02 130.917 242.819 233.63 162.106 182.911 36.1087 154.777 4.15665 61.9361 34.9941 205.065 39.9532 102.241 33.0966 27.7462 254.726 55.6555 After clipping: 214 101 200 204 232 50 85 196 71 141 122 160 93 131 243 234 162 183 36 155 4 62 35 205 40 102 33 28 255 56 prune_pgm_test(): prune pgm() drops small matrix elements whose norm is less than some percentage of the matrix norm. Random matrix: 0.512932 0.839112 0.61264 0.296032 0.637552 0.524287 0.493583 0.972775 0.292517 0.771358 0.526745 0.769914 0.400229 0.891529 0.283315 0.352458 0.807725 0.919026 0.0697553 0.949327 0.525995 0.0860558 0.192214 0.663227 0.890233 Matrix Frobenius norm: 3.15725 min matrix = 0.0697553 max matrix = 0.972775 norm^2 = 9.96825 rel_err = 0.1 abs_err2 = 0.996825 min = 0.0697553, max = 0.521265, e = 1.09382 min = 0.29551, max = 0.521265, e = 0.215051 min = 0.408388, max = 0.521265, e = 0.587095 min = 0.464826, max = 0.521265, e = 0.587095 min = 0.493046, max = 0.521265, e = 0.587095 min = 0.507155, max = 0.521265, e = 0.83072 min = 0.507155, max = 0.51421, e = 1.09382 min = 0.510683, max = 0.51421, e = 0.83072 min = 0.512447, max = 0.51421, e = 0.83072 Pruned matrix: 0.512932 0.839112 0.61264 0 0.637552 0.524287 0 0.972775 0 0.771358 0.526745 0.769914 0 0.891529 0 0 0.807725 0.919026 0 0.949327 0.525995 0 0 0.663227 0.890233 Number of elements deleted was 9 Matrix Frobenius norm after pruning: 3.02283 Ratio norm_new - norm_old / norm_old = 0.0833366 truncation_error_test(): truncation_error() measures error in neglecting matrix elements smaller than a given threshold. Random matrix: 0.348893 0.0641713 0.020023 0.457702 0.0630958 0.23828 0.970634 0.902208 0.85092 0.266666 0.53976 0.375207 0.760249 0.512535 0.667724 0.531606 0.0392803 0.437638 0.931835 0.93081 0.720952 0.284293 0.738534 0.639979 0.354049 Threshold Truncation error: For threshold t = 0.5, truncation error = 1.00763 For threshold t = 0.25, truncation error = 0.0668202 For threshold t = 0.125, truncation error = 0.0100429 For threshold t = 0.0625, truncation error = 0.00194387 ppc_image_analysis_test(): Normal end of execution. 06 May 2024 02:00:37 PM