Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copyright headers to all c/h files #51

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions include/qdldl.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
22 changes: 22 additions & 0 deletions src/qdldl.c
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
23 changes: 23 additions & 0 deletions tests/minunit.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/qdldl_tester.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_basic.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_identity.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_osqp_kkt.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_rank_deficient.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_singleton.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_sym_structure.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_tril_structure.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_two_by_two.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tests/test_zero_on_diag.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down