19-Feb-2026 20:05:09 r8ccs_test(): MATLAB/Octave version 10.3.0 Test r8ccs(). r8ccs_dif2_test(): r8ccs_dif2() sets the second difference as an r8ccs matrix; Matrix rows M = 5 Matrix columns N = 5 Nonzeros NZ_NUM = 13 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 2 -1 0 0 0 2 -1 2 -1 0 0 3 0 -1 2 -1 0 4 0 0 -1 2 -1 5 0 0 0 -1 2 r8ccs_get_test(): r8ccs_get() gets an entry of an r8ccs matrix; Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The COLPTR vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROWIND vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The initial r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 1.68315 1.53541 0 0 0.40039 2 1.33006 0.520623 0 0 1.12497 3 0 0 -1.26486 0 0 4 2.10255 0 0 -0.851815 0 5 0 0 0.228811 1.24278 -0.322786 r8ccs_get retrieves 10 entries. I J K VALUE 3 3 6 -1.264860 1 1 1 1.683147 1 5 10 0.400390 1 5 10 0.400390 1 5 10 0.400390 4 1 3 2.102555 1 1 1 1.683147 1 5 10 0.400390 5 4 9 1.242783 5 5 12 -0.322786 r8ccs_ijk_test(): r8ccs_ijk() gets K from (I,J) for an r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The COLPTR vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROWIND vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The initial r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 -0.0784169 0.337046 0 0 -0.164674 2 1.34292 1.14874 0 0 1.03313 3 0 0 0.388446 0 0 4 -1.89823 0 0 -0.269869 0 5 0 0 0.946188 0.538716 -0.371725 r8ccs_ijk locates some (I,J) entries. I J K 3 1 -1 3 5 -1 2 2 5 3 3 6 2 2 5 1 1 1 1 2 4 3 5 -1 1 1 1 3 5 -1 2 5 11 4 1 3 3 5 -1 4 3 -1 4 1 3 3 3 6 2 5 11 2 1 2 1 3 -1 4 5 -1 r8ccs_inc_test(): r8ccs_inc() increments entries in an r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The COLPTR vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROWIND vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The initial r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 -0.169605 1.39809 0 0 -0.413337 2 0.445376 -0.0650169 0 0 -0.349929 3 0 0 0.0756356 0 0 4 -0.266697 0 0 0.83773 0 5 0 0 -1.31133 0.162964 -1.97854 r8ccs_inc increments 10 entries at random. I J K NEW_VALUE 1 2 4 22.398085 5 3 7 20.688674 4 4 8 23.837730 3 3 6 24.075636 4 1 3 24.733303 2 1 2 26.445376 1 5 10 26.586663 5 5 12 26.021462 1 1 1 28.830395 4 4 8 53.837730 The final r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 28.8304 22.3981 0 0 26.5867 2 26.4454 -0.0650169 0 0 -0.349929 3 0 0 24.0756 0 0 4 24.7333 0 0 53.8377 0 5 0 0 20.6887 0.162964 26.0215 r8ccs_indicator_test(): r8ccs_indicator() sets up the indicator matrix; Matrix rows M = 5 Matrix columns N = 5 Nonzeros NZ_NUM = 12 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 0 15 2 21 22 0 0 25 3 0 0 33 0 0 4 41 0 0 44 0 5 0 0 53 54 55 r8ccs_kij_test(): r8ccs_kij() gets (I,J) from K in an r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The COLPTR vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROWIND vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The initial r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 -0.489242 0.798096 0 0 0.128255 2 1.39611 -1.41634 0 0 0.268404 3 0 0 0.907363 0 0 4 1.03964 0 0 0.787638 0 5 0 0 -0.120211 -0.755574 1.25062 r8ccs_KIJ locates some K entries. K I J 2 2 1 8 4 4 9 5 4 9 5 4 7 5 3 6 3 3 7 5 3 8 4 4 11 2 5 8 4 4 6 3 3 9 5 4 2 2 1 8 4 4 6 3 3 3 4 1 1 1 1 7 5 3 9 5 4 3 4 1 r8ccs_mtv_test(): r8ccs_mtv() computes b=A'*x, where A is an r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The r8ccs matrix A: Col: 1 2 3 4 5 Row --- 1 0.773138 -0.483712 0 0 1.03076 2 -0.772318 0.178616 0 0 0.605961 3 0 0 -1.06431 0 0 4 -0.930068 0 0 -0.0982759 0 5 0 0 0.0414402 0.799185 0.819085 x: 1: 1 2: 0 3: 0 4: 0 5: -1 b=A'*x: 1: 0.773138 2: -0.483712 3: -0.0414402 4: -0.799185 5: 0.211673 r8ccs_mv_test(): r8ccs_mv() computes b=A*x, where A is an r8ccs matrix; Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The r8ccs matrix A: Col: 1 2 3 4 5 Row --- 1 -0.370849 1.18043 0 0 -0.462682 2 -0.447117 0.279972 0 0 2.12655 3 0 0 -0.334956 0 0 4 0.136543 0 0 -1.26836 0 5 0 0 0.532747 -2.56271 0.347791 The x: 1: 1 2: 0 3: 0 4: 0 5: -1 b=A*x: 1: 0.0918334 2: -2.57367 3: 0 4: 0.136543 5: -0.347791 r8ccs_print_test(): r8ccs_print() prints a r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 1.81853 -0.750219 0 0 0.500986 2 1.02273 0.0529035 0 0 0.579149 3 0 0 -0.993025 0 0 4 -0.528205 0 0 -0.338705 0 5 0 0 -1.23835 1.76578 1.04973 r8ccs_print_some_test(): r8ccs_print_some() prints some of an r8ccs matrix. Matrix rows M = 10 Matrix columns N = 10 Nonzeros NZ_NUM = 28 Rows 2-6, Cols 5-8: Col: 5 6 7 8 Row --- 2 0 0 0 0 3 0 0 0 0 4 405 0 0 0 5 505 506 0 0 6 605 606 607 0 r8ccs_random_test() r8ccs_random(): randomizes an r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Nonzeros NZ_NUM = 12 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 -0.130286 -0.999785 0 0 -1.01951 2 0.63983 -1.81299 0 0 0.403031 3 0 0 0.582642 0 0 4 0.187934 0 0 0.365087 0 5 0 0 -0.237559 -0.832633 -0.372173 r8ccs_read_test(): r8ccs_read() reads an r8ccs matrix from a file. Matrix rows M = 5 Matrix columns N = 5 Nonzeros NZ_NUM = 12 Index base (0/1) = 1 The COL vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROW vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 0 15 2 21 22 0 0 25 3 0 0 33 0 0 4 41 0 0 44 0 5 0 0 53 54 55 r8ccs_set_test(): r8ccs_set() sets entries in an r8ccs matrix; Matrix rows M = 5 Matrix columns N = 5 Matrix nonzeros NZ_NUM = 12 The COLPTR vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROWIND vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The initial r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 -1.26447 -1.24626 0 0 -1.27527 2 0.0680407 -0.0811268 0 0 -1.58866 3 0 0 -0.319007 0 0 4 0.151008 0 0 0.590957 0 5 0 0 -1.26838 -0.635969 -0.32839 r8ccs_set sets 10 entries at random. I J K NEW_VALUE 5 5 12 101.000000 1 2 4 102.000000 2 5 11 103.000000 1 2 4 104.000000 1 5 10 105.000000 5 4 9 106.000000 2 2 5 107.000000 4 1 3 108.000000 4 1 3 109.000000 1 2 4 110.000000 The final r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 -1.26447 110 0 0 105 2 0.0680407 107 0 0 103 3 0 0 -0.319007 0 0 4 109 0 0 0.590957 0 5 0 0 -1.26838 106 101 r8ccs_to_r8ge_test(): r8ccs_to_r8ge() converts a matrix from r8ccs to r8ge format. Matrix rows M = Matrix columns N = Nonzeros NZ_NUM = The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 0 15 2 21 22 0 0 25 3 0 0 33 0 0 4 41 0 0 44 0 5 0 0 53 54 55 The R8GE matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 0 15 2 21 22 0 0 25 3 0 0 33 0 0 4 41 0 0 44 0 5 0 0 53 54 55 r8ccs_write_test(): r8ccs_write() writes an r8ccs matrix to 3 files Matrix rows M = 5 Matrix columns N = 5 Nonzeros NZ_NUM = 12 The COL vector: 1: 1 2: 4 3: 6 4: 8 5: 10 6: 13 The ROW vector: 1: 1 2: 2 3: 4 4: 1 5: 2 6: 3 7: 5 8: 4 9: 5 10: 1 11: 2 12: 5 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 0 15 2 21 22 0 0 25 3 0 0 33 0 0 4 41 0 0 44 0 5 0 0 53 54 55 r8ccs_zeros_test(): r8ccs_zeros() zeros an r8ccs matrix. Matrix rows M = 5 Matrix columns N = 5 Nonzeros NZ_NUM = 12 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 0 0 0 0 0 2 0 0 0 0 0 3 0 0 0 0 0 4 0 0 0 0 0 5 0 0 0 0 0 r8ge_to_r8ccs_test(): r8ge_to_r8ccs() converts an r8g3 matrix to r8ccs format. The R8GE matrix: Col: 1 2 3 4 5 Row --- 1 11 12 13 0 15 2 0 0 23 0 0 3 31 0 33 0 35 4 41 42 0 44 0 5 0 52 0 54 55 The r8ccs matrix: Col: 1 2 3 4 5 Row --- 1 11 12 13 0 15 2 0 0 23 0 0 3 31 0 33 0 35 4 41 42 0 44 0 5 0 52 0 54 55 r8ccs_test(): Normal end of execution. 19-Feb-2026 20:05:09