@@ -215,11 +215,11 @@ const char *test_jacobian_matmul_Ax_By(void)
215215 CSR_Matrix * A = new_csr_random (3 , 2 , 1.0 );
216216 CSR_Matrix * B = new_csr_random (2 , 3 , 1.0 );
217217
218- expr * X = new_variable (2 , 2 , 0 , 10 ); /* 2x2, vars 0-3 */
219- expr * Y = new_variable (3 , 2 , 4 , 10 ); /* 3x2, vars 4-9 */
220- expr * AX = new_left_matmul (NULL , X , A ); /* 3x2 */
221- expr * BY = new_left_matmul (NULL , Y , B ); /* 2x2 */
222- expr * Z = new_matmul (AX , BY ); /* 3x2 */
218+ expr * X = new_variable (2 , 2 , 0 , 10 ); /* 2x2, vars 0-3 */
219+ expr * Y = new_variable (3 , 2 , 4 , 10 ); /* 3x2, vars 4-9 */
220+ expr * AX = new_left_matmul (NULL , X , A ); /* 3x2 */
221+ expr * BY = new_left_matmul (NULL , Y , B ); /* 2x2 */
222+ expr * Z = new_matmul (AX , BY ); /* 3x2 */
223223
224224 mu_assert ("check_jacobian failed" ,
225225 check_jacobian (Z , u_vals , NUMERICAL_DIFF_DEFAULT_H ));
@@ -238,12 +238,12 @@ const char *test_jacobian_matmul_sin_Ax_cos_Bx(void)
238238 CSR_Matrix * A = new_csr_random (2 , 3 , 1.0 );
239239 CSR_Matrix * B = new_csr_random (2 , 3 , 1.0 );
240240
241- expr * X = new_variable (3 , 2 , 0 , 6 ); /* 3x2, vars 0-5 */
242- expr * AX = new_left_matmul (NULL , X , A ); /* 2x2 */
243- expr * BX = new_left_matmul (NULL , X , B ); /* 2x2 */
244- expr * sin_AX = new_sin (AX ); /* 2x2 */
245- expr * cos_BX = new_cos (BX ); /* 2x2 */
246- expr * Z = new_matmul (sin_AX , cos_BX ); /* 2x2 */
241+ expr * X = new_variable (3 , 2 , 0 , 6 ); /* 3x2, vars 0-5 */
242+ expr * AX = new_left_matmul (NULL , X , A ); /* 2x2 */
243+ expr * BX = new_left_matmul (NULL , X , B ); /* 2x2 */
244+ expr * sin_AX = new_sin (AX ); /* 2x2 */
245+ expr * cos_BX = new_cos (BX ); /* 2x2 */
246+ expr * Z = new_matmul (sin_AX , cos_BX ); /* 2x2 */
247247
248248 mu_assert ("check_jacobian failed" ,
249249 check_jacobian (Z , u_vals , NUMERICAL_DIFF_DEFAULT_H ));
0 commit comments