|
6 | 6 | #ifndef PROFILE_ONLY |
7 | 7 | #include "forward_pass/affine/test_add.h" |
8 | 8 | #include "forward_pass/affine/test_broadcast.h" |
| 9 | +#include "forward_pass/affine/test_diag_mat.h" |
9 | 10 | #include "forward_pass/affine/test_hstack.h" |
10 | 11 | #include "forward_pass/affine/test_linear_op.h" |
11 | 12 | #include "forward_pass/affine/test_neg.h" |
12 | 13 | #include "forward_pass/affine/test_promote.h" |
13 | 14 | #include "forward_pass/affine/test_sum.h" |
| 15 | +#include "forward_pass/affine/test_upper_tri.h" |
14 | 16 | #include "forward_pass/affine/test_variable_constant.h" |
15 | 17 | #include "forward_pass/composite/test_composite.h" |
16 | 18 | #include "forward_pass/elementwise/test_exp.h" |
|
24 | 26 | #include "jacobian_tests/test_composite.h" |
25 | 27 | #include "jacobian_tests/test_const_scalar_mult.h" |
26 | 28 | #include "jacobian_tests/test_const_vector_mult.h" |
| 29 | +#include "jacobian_tests/test_diag_mat.h" |
27 | 30 | #include "jacobian_tests/test_elementwise_mult.h" |
28 | 31 | #include "jacobian_tests/test_hstack.h" |
29 | 32 | #include "jacobian_tests/test_index.h" |
|
44 | 47 | #include "jacobian_tests/test_sum.h" |
45 | 48 | #include "jacobian_tests/test_trace.h" |
46 | 49 | #include "jacobian_tests/test_transpose.h" |
| 50 | +#include "jacobian_tests/test_upper_tri.h" |
47 | 51 | #include "problem/test_problem.h" |
48 | 52 | #include "utils/test_cblas.h" |
49 | 53 | #include "utils/test_coo_matrix.h" |
|
63 | 67 | #include "wsum_hess/test_broadcast.h" |
64 | 68 | #include "wsum_hess/test_const_scalar_mult.h" |
65 | 69 | #include "wsum_hess/test_const_vector_mult.h" |
| 70 | +#include "wsum_hess/test_diag_mat.h" |
66 | 71 | #include "wsum_hess/test_hstack.h" |
67 | 72 | #include "wsum_hess/test_index.h" |
68 | 73 | #include "wsum_hess/test_left_matmul.h" |
|
80 | 85 | #include "wsum_hess/test_sum.h" |
81 | 86 | #include "wsum_hess/test_trace.h" |
82 | 87 | #include "wsum_hess/test_transpose.h" |
| 88 | +#include "wsum_hess/test_upper_tri.h" |
83 | 89 | #endif /* PROFILE_ONLY */ |
84 | 90 |
|
85 | 91 | #ifdef PROFILE_ONLY |
@@ -116,6 +122,8 @@ int main(void) |
116 | 122 | mu_run_test(test_forward_prod_axis_one, tests_run); |
117 | 123 | mu_run_test(test_matmul, tests_run); |
118 | 124 | mu_run_test(test_left_matmul_dense, tests_run); |
| 125 | + mu_run_test(test_diag_mat_forward, tests_run); |
| 126 | + mu_run_test(test_upper_tri_forward, tests_run); |
119 | 127 |
|
120 | 128 | printf("\n--- Jacobian Tests ---\n"); |
121 | 129 | mu_run_test(test_neg_jacobian, tests_run); |
@@ -181,6 +189,10 @@ int main(void) |
181 | 189 | mu_run_test(test_jacobian_right_matmul_log_vector, tests_run); |
182 | 190 | mu_run_test(test_jacobian_matmul, tests_run); |
183 | 191 | mu_run_test(test_jacobian_transpose, tests_run); |
| 192 | + mu_run_test(test_diag_mat_jacobian_variable, tests_run); |
| 193 | + mu_run_test(test_diag_mat_jacobian_of_log, tests_run); |
| 194 | + mu_run_test(test_upper_tri_jacobian_variable, tests_run); |
| 195 | + mu_run_test(test_upper_tri_jacobian_of_log, tests_run); |
184 | 196 |
|
185 | 197 | printf("\n--- Weighted Sum of Hessian Tests ---\n"); |
186 | 198 | mu_run_test(test_wsum_hess_log, tests_run); |
@@ -246,6 +258,8 @@ int main(void) |
246 | 258 | mu_run_test(test_wsum_hess_trace_log_variable, tests_run); |
247 | 259 | mu_run_test(test_wsum_hess_trace_composite, tests_run); |
248 | 260 | mu_run_test(test_wsum_hess_transpose, tests_run); |
| 261 | + mu_run_test(test_wsum_hess_diag_mat_log, tests_run); |
| 262 | + mu_run_test(test_wsum_hess_upper_tri_log, tests_run); |
249 | 263 |
|
250 | 264 | printf("\n--- Utility Tests ---\n"); |
251 | 265 | mu_run_test(test_cblas_ddot, tests_run); |
|
0 commit comments