From cd1a28ad2cbb1577a23e5b7b4bd4f9226f88b88c Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 4 Apr 2024 17:04:01 +0100 Subject: [PATCH] Add copyright headers to all c/h files --- include/qdldl.h | 22 ++++++++++++++++++++++ src/qdldl.c | 22 ++++++++++++++++++++++ tests/minunit.h | 23 +++++++++++++++++++++++ tests/qdldl_tester.c | 23 +++++++++++++++++++++++ tests/test_basic.h | 23 +++++++++++++++++++++++ tests/test_identity.h | 23 +++++++++++++++++++++++ tests/test_osqp_kkt.h | 23 +++++++++++++++++++++++ tests/test_rank_deficient.h | 23 +++++++++++++++++++++++ tests/test_singleton.h | 23 +++++++++++++++++++++++ tests/test_sym_structure.h | 23 +++++++++++++++++++++++ tests/test_tril_structure.h | 23 +++++++++++++++++++++++ tests/test_two_by_two.h | 23 +++++++++++++++++++++++ tests/test_zero_on_diag.h | 23 +++++++++++++++++++++++ 13 files changed, 297 insertions(+) diff --git a/include/qdldl.h b/include/qdldl.h index 35f7ea4..3604a78 100644 --- a/include/qdldl.h +++ b/include/qdldl.h @@ -1,3 +1,25 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, Bartolomeo Stellato, Goran Banjac, Ian McInerney, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ #ifndef QDLDL_H #define QDLDL_H diff --git a/src/qdldl.c b/src/qdldl.c index 6fb17d4..ab735a7 100644 --- a/src/qdldl.c +++ b/src/qdldl.c @@ -1,3 +1,25 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, Bartolomeo Stellato, Goran Banjac, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "qdldl.h" #define QDLDL_UNKNOWN (-1) diff --git a/tests/minunit.h b/tests/minunit.h index 54744a7..eef988b 100644 --- a/tests/minunit.h +++ b/tests/minunit.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Bartolomeo Stellato, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + /* QDLDL TESTER MODULE */ /* THE CODE FOR MINIMAL UNIT TESTING HAS BEEN TAKEN FROM diff --git a/tests/qdldl_tester.c b/tests/qdldl_tester.c index 6f13a87..7c2e293 100644 --- a/tests/qdldl_tester.c +++ b/tests/qdldl_tester.c @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, Bartolomeo Stellato, Goran Banjac, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + /* QDLDL TESTER MODULE */ /* THE CODE FOR MINIMAL UNIT TESTING HAS BEEN TAKEN FROM diff --git a/tests/test_basic.h b/tests/test_basic.h index 0d14240..b31c49b 100644 --- a/tests/test_basic.h +++ b/tests/test_basic.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, Bartolomeo Stellato, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_basic() { //A matrix data diff --git a/tests/test_identity.h b/tests/test_identity.h index 838ef0f..9faf800 100644 --- a/tests/test_identity.h +++ b/tests/test_identity.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_identity() { //A matrix data diff --git a/tests/test_osqp_kkt.h b/tests/test_osqp_kkt.h index f63b9c5..4e86823 100644 --- a/tests/test_osqp_kkt.h +++ b/tests/test_osqp_kkt.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Bartolomeo Stellato, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_osqp_kkt() { // Unordered A diff --git a/tests/test_rank_deficient.h b/tests/test_rank_deficient.h index 5506629..2d98bd5 100644 --- a/tests/test_rank_deficient.h +++ b/tests/test_rank_deficient.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, Bartolomeo Stellato, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_rank_deficient() { //A matrix data diff --git a/tests/test_singleton.h b/tests/test_singleton.h index 2969935..f5f1c58 100644 --- a/tests/test_singleton.h +++ b/tests/test_singleton.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_singleton() { //A matrix data diff --git a/tests/test_sym_structure.h b/tests/test_sym_structure.h index 52faf01..f4a6bd5 100644 --- a/tests/test_sym_structure.h +++ b/tests/test_sym_structure.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, Bartolomeo Stellato, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_sym_structure() { //A matrix data diff --git a/tests/test_tril_structure.h b/tests/test_tril_structure.h index 79a189c..28d1f5a 100644 --- a/tests/test_tril_structure.h +++ b/tests/test_tril_structure.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_tril_structure() { //A matrix data diff --git a/tests/test_two_by_two.h b/tests/test_two_by_two.h index 484caa1..7ddc409 100644 --- a/tests/test_two_by_two.h +++ b/tests/test_two_by_two.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_two_by_two() { //A matrix data diff --git a/tests/test_zero_on_diag.h b/tests/test_zero_on_diag.h index bb09d9e..a20986e 100644 --- a/tests/test_zero_on_diag.h +++ b/tests/test_zero_on_diag.h @@ -1,3 +1,26 @@ +/* + * This file is part of QDLDL, a library for performing the LDL^T factorization + * of a symmetric indefinite matrix. + * + * QDLDL is part of the OSQP project, and is available at https://github.com/osqp/qdldl. + * + * Copyright 2018, Paul Goulart, The OSQP developers + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + static char* test_zero_on_diag() { //A matrix data