Skip to content

Commit 91e2af2

Browse files
committed
run formatter and push it up
1 parent c090e0f commit 91e2af2

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

include/subexpr.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ typedef struct matmul_expr
171171
int *idx_map_Hg;
172172
} matmul_expr;
173173

174-
175174
/* Index/slicing: y = child[indices] where indices is a list of flat positions */
176175
typedef struct index_expr
177176
{

tests/jacobian_tests/composite/test_chain_rule_jacobian.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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));

tests/wsum_hess/composite/test_chain_rule_wsum_hess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ const char *test_wsum_hess_matmul_Ax_By(void)
310310
expr *Y = new_variable(3, 2, 4, 10);
311311
expr *AX = new_left_matmul(NULL, X, A); /* 3x2 */
312312
expr *BY = new_left_matmul(NULL, Y, B); /* 2x2 */
313-
expr *Z = new_matmul(AX, BY); /* 3x2 */
313+
expr *Z = new_matmul(AX, BY); /* 3x2 */
314314

315315
mu_assert("check_wsum_hess failed",
316316
check_wsum_hess(Z, u_vals, w, NUMERICAL_DIFF_DEFAULT_H));

0 commit comments

Comments
 (0)