Skip to content

Commit df89c37

Browse files
committed
add license to new files
1 parent 607137f commit df89c37

41 files changed

Lines changed: 702 additions & 43 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/atoms/bivariate_full_dom.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef BIVARIATE_FULL_DOM_H
219
#define BIVARIATE_FULL_DOM_H
320

@@ -8,4 +25,4 @@ expr *new_elementwise_mult(expr *left, expr *right);
825
/* Matrix multiplication: Z = X @ Y */
926
expr *new_matmul(expr *x, expr *y);
1027

11-
#endif /* BIVARIATE_FULL_DOM_H */
28+
#endif /* BIVARIATE_FULL_DOM_H */

include/atoms/bivariate_restricted_dom.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef BIVARIATE_RESTRICTED_DOM_H
219
#define BIVARIATE_RESTRICTED_DOM_H
320

@@ -8,4 +25,4 @@ expr *new_rel_entr_vector_args(expr *left, expr *right);
825
expr *new_rel_entr_first_arg_scalar(expr *left, expr *right);
926
expr *new_rel_entr_second_arg_scalar(expr *left, expr *right);
1027

11-
#endif /* BIVARIATE_RESTRICTED_DOM_H */
28+
#endif /* BIVARIATE_RESTRICTED_DOM_H */

include/atoms/elementwise_full_dom.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef ELEMENTWISE_FULL_DOM_H
219
#define ELEMENTWISE_FULL_DOM_H
320

@@ -31,4 +48,4 @@ expr *new_elementwise(expr *child);
3148
convention, so we can have a common implementation */
3249
bool is_affine_elementwise(const expr *node);
3350

34-
#endif /* ELEMENTWISE_FULL_DOM_H */
51+
#endif /* ELEMENTWISE_FULL_DOM_H */

include/atoms/elementwise_restricted_dom.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef ELEMENTWISE_RESTRICTED_DOM_H
219
#define ELEMENTWISE_RESTRICTED_DOM_H
320

@@ -15,4 +32,4 @@ expr *new_entr(expr *child);
1532
expr *new_atanh(expr *child);
1633
expr *new_tan(expr *child);
1734

18-
#endif /* ELEMENTWISE_RESTRICTED_DOM_H */
35+
#endif /* ELEMENTWISE_RESTRICTED_DOM_H */

include/old-code/old_CSR.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef OLD_CSR_H
219
#define OLD_CSR_H
320

@@ -26,4 +43,4 @@ void diag_csr_mult(const double *d, const CSR_Matrix *A, CSR_Matrix *C);
2643
/* y = Ax, where y is returned as dense (no column offset) */
2744
void Ax_csr_wo_offset(const CSR_Matrix *A, const double *x, double *y);
2845

29-
#endif /* OLD_CSR_H */
46+
#endif /* OLD_CSR_H */

include/old-code/old_CSR_sum.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef OLD_CSR_SUM_H
219
#define OLD_CSR_SUM_H
320

@@ -41,4 +58,4 @@ void sum_all_rows_csr_fill_values(const CSR_Matrix *A, CSR_Matrix *C,
4158
void sum_block_of_rows_csr_fill_values(const CSR_Matrix *A, CSR_Matrix *C,
4259
const int *idx_map);
4360

44-
#endif /* OLD_CSR_SUM_H */
61+
#endif /* OLD_CSR_SUM_H */

include/old-code/old_affine.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef OLD_AFFINE_H
219
#define OLD_AFFINE_H
320

@@ -6,4 +23,4 @@
623

724
expr *new_linear(expr *u, const CSR_Matrix *A, const double *b);
825

9-
#endif /* OLD_AFFINE_H */
26+
#endif /* OLD_AFFINE_H */

include/utils/COO_Matrix.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef COO_MATRIX_H
219
#define COO_MATRIX_H
320

@@ -40,4 +57,4 @@ void refresh_lower_triangular_coo(COO_Matrix *coo, const double *vals);
4057

4158
void free_coo_matrix(COO_Matrix *matrix);
4259

43-
#endif /* COO_MATRIX_H */
60+
#endif /* COO_MATRIX_H */

include/utils/CSC_Matrix.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef CSC_MATRIX_H
219
#define CSC_MATRIX_H
320

@@ -60,4 +77,4 @@ void csr_to_csc_fill_values(const CSR_Matrix *A, CSC_Matrix *C, int *iwork);
6077
CSR_Matrix *csc_to_csr_alloc(const CSC_Matrix *A, int *iwork);
6178
void csc_to_csr_fill_values(const CSC_Matrix *A, CSR_Matrix *C, int *iwork);
6279

63-
#endif /* CSC_MATRIX_H */
80+
#endif /* CSC_MATRIX_H */

include/utils/CSR_Matrix.h

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2026 Daniel Cederberg and William Zhang
3+
*
4+
* This file is part of the SparseDiffEngine project.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#ifndef CSR_MATRIX_H
219
#define CSR_MATRIX_H
320
#include <stdbool.h>
@@ -53,4 +70,4 @@ double csr_get_value(const CSR_Matrix *A, int row, int col);
5370
only upper triangle. C must be pre-allocated with sufficient nnz */
5471
void symmetrize_csr(const int *Ap, const int *Ai, int m, CSR_Matrix *C);
5572

56-
#endif /* CSR_MATRIX_H */
73+
#endif /* CSR_MATRIX_H */

0 commit comments

Comments
 (0)