diff --git a/LICENSE.md b/LICENSE.md index e426123..d62be57 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,22 +1,24 @@ -The CSDP.jl package is licensed under the MIT "Expat" License: +CSDP.jl is licensed under the MIT License (MIT) -> Copyright (c) 2016: Elias Kuthe. -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Note that CSDP.jl includes coin-or/Csdp as a dependency, which is licensed under +the Eclipse public license: https://github.com/coin-or/Csdp/blob/master/LICENSE + +Copyright (c) 2016: CSDP.jl contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/examples/example.jl b/examples/example.jl index ed02d63..c1cbd9a 100644 --- a/examples/example.jl +++ b/examples/example.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using CSDP #= diff --git a/src/CSDP.jl b/src/CSDP.jl index f313106..cdd951f 100644 --- a/src/CSDP.jl +++ b/src/CSDP.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + module CSDP using LinearAlgebra # For Diagonal diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index e3be0ce..0ac9e5a 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using MathOptInterface const MOI = MathOptInterface const AFF = MOI.ScalarAffineFunction{Cdouble} diff --git a/src/blockdiag.jl b/src/blockdiag.jl index 6d814a5..decb5cb 100644 --- a/src/blockdiag.jl +++ b/src/blockdiag.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + abstract type AbstractBlockMatrix{T} <: AbstractMatrix{T} end function nblocks end diff --git a/src/blockmat.h.jl b/src/blockmat.h.jl index f78b9cd..e5df5c9 100644 --- a/src/blockmat.h.jl +++ b/src/blockmat.h.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + # Julia wrapper for header: include/blockmat.h # Automatically generated using Clang.jl wrap_c, version 0.0.0 diff --git a/src/blockmat.jl b/src/blockmat.jl index 6d6d8cc..b8ecb9a 100644 --- a/src/blockmat.jl +++ b/src/blockmat.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + # Data types declared in `include/blockmat.h` # Small type names are the C types # Capitalized are the corresponding Julia types diff --git a/src/debug-mat.jl b/src/debug-mat.jl index b50aea8..f09ab6a 100644 --- a/src/debug-mat.jl +++ b/src/debug-mat.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + function print_block(b::blockrec) return ccall((:printb, CSDP.libcsdp), Nothing, (blockrec,), b) end diff --git a/src/declarations.h.jl b/src/declarations.h.jl index 6807f4a..845d18b 100644 --- a/src/declarations.h.jl +++ b/src/declarations.h.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + # Julia wrapper for header: include/declarations.h # Automatically generated using Clang.jl wrap_c, version 0.0.0 and then modified as some places diff --git a/src/declarations.jl b/src/declarations.jl index 442ba43..9d187b6 100644 --- a/src/declarations.jl +++ b/src/declarations.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + export initsoln, easy_sdp struct LoadingProblem diff --git a/src/options.jl b/src/options.jl index 6a4754a..c61c8ff 100644 --- a/src/options.jl +++ b/src/options.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + const ALLOWED_OPTIONS = [ :printlevel, :axtol, diff --git a/test/MOI_wrapper.jl b/test/MOI_wrapper.jl index d998e77..f3a025a 100644 --- a/test/MOI_wrapper.jl +++ b/test/MOI_wrapper.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + module TestCSDP using Test diff --git a/test/bug.jl b/test/bug.jl index f4b06e5..806dead 100644 --- a/test/bug.jl +++ b/test/bug.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using CSDP using MathOptInterface const MOI = MathOptInterface diff --git a/test/check_blas.jl b/test/check_blas.jl index de30eb1..42765ab 100644 --- a/test/check_blas.jl +++ b/test/check_blas.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + #!/usr/bin/env julia """ diff --git a/test/jl_ref.jl b/test/jl_ref.jl index 1eb41d9..5ccddba 100644 --- a/test/jl_ref.jl +++ b/test/jl_ref.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + # Test Julia's Ref mechanism and compare it to Ptr. # diff --git a/test/rebuild.jl b/test/rebuild.jl index 6f90a79..ce32ec7 100644 --- a/test/rebuild.jl +++ b/test/rebuild.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + # Rebuild shared library try using CSDP diff --git a/test/runtests.jl b/test/runtests.jl index 566f4cd..5e11497 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using CSDP using Test diff --git a/test/triu.jl b/test/triu.jl index 8fc4e01..e29b256 100644 --- a/test/triu.jl +++ b/test/triu.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using CSDP if !isdefined(:J) || !isa(J, AbstractArray) diff --git a/test/writesol.jl b/test/writesol.jl index 5139d63..5b12721 100644 --- a/test/writesol.jl +++ b/test/writesol.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: CSDP.jl contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using CSDP X_sol = Blockmatrix(