Skip to content

Commit

Permalink
Merge pull request #51 from osqp/im/headers
Browse files Browse the repository at this point in the history
  • Loading branch information
imciner2 authored May 3, 2024
2 parents b37fdff + 33cd612 commit 87908cf
Show file tree
Hide file tree
Showing 13 changed files with 297 additions and 0 deletions.
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

0 comments on commit 87908cf

Please sign in to comment.