@@ -21,33 +21,28 @@ const char *test_left_matmul_dense(void)
2121 expr * X = new_variable (3 , 3 , 0 , 9 );
2222
2323 /* Constant matrix A in row-major order */
24- double A_data [9 ] = {1.0 , 2.0 , 3.0 ,
25- 4.0 , 5.0 , 6.0 ,
26- 7.0 , 8.0 , 9.0 };
24+ double A_data [9 ] = {1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0 };
2725
2826 /* Build expression Z = A @ X */
2927 expr * Z = new_left_matmul_dense (X , 3 , 3 , A_data );
3028
3129 /* Variable values in column-major order */
32- double u [9 ] = {1.0 , 2.0 , 3.0 , /* first column */
33- 4.0 , 5.0 , 6.0 , /* second column */
34- 7.0 , 8.0 , 9.0 }; /* third column */
30+ double u [9 ] = {1.0 , 2.0 , 3.0 , /* first column */
31+ 4.0 , 5.0 , 6.0 , /* second column */
32+ 7.0 , 8.0 , 9.0 }; /* third column */
3533
3634 /* Evaluate forward pass */
3735 Z -> forward (Z , u );
3836
3937 /* Expected result (3 x 3) in column-major order */
40- double expected [9 ] = {14.0 , 32.0 , 50.0 , /* first column */
41- 32.0 , 77.0 , 122.0 , /* second column */
42- 50.0 , 122.0 , 194.0 }; /* third column */
38+ double expected [9 ] = {14.0 , 32.0 , 50.0 , /* first column */
39+ 32.0 , 77.0 , 122.0 , /* second column */
40+ 50.0 , 122.0 , 194.0 }; /* third column */
4341
4442 /* Verify dimensions */
45- mu_assert ("left_matmul_dense result should have d1=3" ,
46- Z -> d1 == 3 );
47- mu_assert ("left_matmul_dense result should have d2=3" ,
48- Z -> d2 == 3 );
49- mu_assert ("left_matmul_dense result should have size=9" ,
50- Z -> size == 9 );
43+ mu_assert ("left_matmul_dense result should have d1=3" , Z -> d1 == 3 );
44+ mu_assert ("left_matmul_dense result should have d2=3" , Z -> d2 == 3 );
45+ mu_assert ("left_matmul_dense result should have size=9" , Z -> size == 9 );
5146
5247 /* Verify values */
5348 mu_assert ("Left matmul dense forward pass test failed" ,
0 commit comments