Skip to content

Commit 93eb23c

Browse files
Transurgeonclaude
andcommitted
Remove SPDX headers and redundant 3x3 upper_tri test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e49d034 commit 93eb23c

9 files changed

Lines changed: 0 additions & 43 deletions

File tree

src/atoms/affine/diag_mat.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
// SPDX-License-Identifier: Apache-2.0
19-
2018
#include "atoms/affine.h"
2119
#include <assert.h>
2220
#include <stdlib.h>

src/atoms/affine/upper_tri.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
// SPDX-License-Identifier: Apache-2.0
19-
2018
#include "atoms/affine.h"
2119
#include <assert.h>
2220
#include <stdlib.h>

tests/all_tests.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ int main(void)
135135
mu_run_test(test_matmul, tests_run);
136136
mu_run_test(test_left_matmul_dense, tests_run);
137137
mu_run_test(test_diag_mat_forward, tests_run);
138-
mu_run_test(test_upper_tri_forward, tests_run);
139138
mu_run_test(test_upper_tri_forward_4x4, tests_run);
140139

141140
printf("\n--- Jacobian Tests ---\n");

tests/forward_pass/affine/test_diag_mat.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// SPDX-License-Identifier: Apache-2.0
2-
31
#include <stdio.h>
42

53
#include "atoms/affine.h"

tests/forward_pass/affine/test_upper_tri.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,10 @@
1-
// SPDX-License-Identifier: Apache-2.0
2-
31
#include <stdio.h>
42

53
#include "atoms/affine.h"
64
#include "expr.h"
75
#include "minunit.h"
86
#include "test_helpers.h"
97

10-
const char *test_upper_tri_forward(void)
11-
{
12-
/* 3x3 matrix variable (column-major): [1,2,3,4,5,6,7,8,9]
13-
* Matrix: 1 4 7
14-
* 2 5 8
15-
* 3 6 9
16-
* Upper tri in row-major order (matching CVXPY):
17-
* Row 0: (0,1)=4, (0,2)=7
18-
* Row 1: (1,2)=8
19-
* Flat indices: 3, 6, 7 */
20-
double u[9] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0};
21-
expr *var = new_variable(3, 3, 0, 9);
22-
expr *ut = new_upper_tri(var);
23-
24-
mu_assert("upper_tri d1", ut->d1 == 3);
25-
mu_assert("upper_tri d2", ut->d2 == 1);
26-
27-
ut->forward(ut, u);
28-
29-
double expected[3] = {4.0, 7.0, 8.0};
30-
mu_assert("upper_tri forward", cmp_double_array(ut->value, expected, 3));
31-
32-
free_expr(ut);
33-
return 0;
34-
}
35-
368
const char *test_upper_tri_forward_4x4(void)
379
{
3810
/* 4x4 matrix variable (column-major): [1..16]

tests/jacobian_tests/affine/test_diag_mat.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// SPDX-License-Identifier: Apache-2.0
2-
31
#include <stdio.h>
42

53
#include "atoms/affine.h"

tests/jacobian_tests/affine/test_upper_tri.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// SPDX-License-Identifier: Apache-2.0
2-
31
#include <stdio.h>
42

53
#include "atoms/affine.h"

tests/wsum_hess/affine/test_diag_mat.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// SPDX-License-Identifier: Apache-2.0
2-
31
#include <math.h>
42
#include <stdio.h>
53
#include <stdlib.h>

tests/wsum_hess/affine/test_upper_tri.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// SPDX-License-Identifier: Apache-2.0
2-
31
#include <math.h>
42
#include <stdio.h>
53
#include <stdlib.h>

0 commit comments

Comments
 (0)