@@ -1047,8 +1047,8 @@ const char *test_BA_pd_matrices_fast_path(void)
10471047 return 0 ;
10481048}
10491049
1050- /* Direct vtable tests for sum_alloc . The test PD represents a (6, 4) matrix
1051- with a (3, 2) dense block at rows {0, 3, 4}, cols {1, 3}. We exercise all
1050+ /* Direct vtable tests for sum_row_partition_alloc . The test PD represents a (6, 4)
1051+ matrix with a (3, 2) dense block at rows {0, 3, 4}, cols {1, 3}. We exercise all
10521052 three axes; for axis=0 (d1=2) the buckets {0/2, 3/2, 4/2} = {0, 1, 2}
10531053 are all distinct and non-decreasing (linear-scan dedupe); for axis=1
10541054 (d1=3) the buckets {0%3, 3%3, 4%3} = {0, 0, 1} collapse two input rows
@@ -1062,7 +1062,7 @@ const char *test_permuted_dense_sum_all_rows(void)
10621062 matrix * M = new_permuted_dense (6 , 4 , 3 , 2 , row_perm , col_perm , X );
10631063
10641064 int idx_map [6 ];
1065- matrix * out = M -> sum_alloc (M , -1 , /*d1 unused*/ 0 , idx_map );
1065+ matrix * out = M -> sum_row_partition_alloc (M , -1 , /*d1 unused*/ 0 , idx_map );
10661066
10671067 mu_assert ("output is PD" , out -> is_permuted_dense );
10681068 permuted_dense * opd = (permuted_dense * ) out ;
@@ -1092,7 +1092,7 @@ const char *test_permuted_dense_sum_block_of_rows(void)
10921092
10931093 int d1 = 2 ; /* child shape (d1, d2) = (2, 3); output rows = d2 = 3 */
10941094 int idx_map [6 ];
1095- matrix * out = M -> sum_alloc (M , 0 , d1 , idx_map );
1095+ matrix * out = M -> sum_row_partition_alloc (M , 0 , d1 , idx_map );
10961096
10971097 mu_assert ("output is PD" , out -> is_permuted_dense );
10981098 permuted_dense * opd = (permuted_dense * ) out ;
@@ -1121,7 +1121,7 @@ const char *test_permuted_dense_sum_evenly_spaced_rows(void)
11211121
11221122 int d1 = 3 ; /* output rows = d1 = 3, buckets = {0%3, 3%3, 4%3} = {0, 0, 1} */
11231123 int idx_map [6 ];
1124- matrix * out = M -> sum_alloc (M , 1 , d1 , idx_map );
1124+ matrix * out = M -> sum_row_partition_alloc (M , 1 , d1 , idx_map );
11251125
11261126 mu_assert ("output is PD" , out -> is_permuted_dense );
11271127 permuted_dense * opd = (permuted_dense * ) out ;
0 commit comments