[sdpb] 107/233: Added LICENSE file and headers
Tobias Hansen
thansen at moszumanska.debian.org
Thu Mar 9 04:06:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository sdpb.
commit b0c69c39f71c869a2c60b8328b03ab063057a81c
Author: David Simmons-Duffin <dsd at minerva.sns.ias.edu>
Date: Tue Nov 18 16:42:55 2014 -0500
Added LICENSE file and headers
---
LICENSE | 21 +++++++++++++++++++++
src/BlockDiagonalMatrix.cpp | 8 ++++++++
src/BlockDiagonalMatrix.h | 14 +++++++++++---
src/Matrix.cpp | 8 ++++++++
src/Matrix.h | 14 +++++++++++---
src/Polynomial.h | 14 +++++++++++---
src/SDP.cpp | 8 ++++++++
src/SDP.h | 14 +++++++++++---
src/SDPSolver.cpp | 8 ++++++++
src/SDPSolver.h | 14 +++++++++++---
src/SDPSolverIO.cpp | 8 ++++++++
src/Timers.h | 14 +++++++++++---
src/Vector.h | 14 +++++++++++---
src/main.cpp | 8 ++++++++
src/mpack/RgemmParallel.cpp | 2 ++
src/mpack/Rpotf2Stabilized.cpp | 2 ++
src/mpack/RpotrfStabilized.cpp | 2 ++
src/parse.cpp | 8 ++++++++
src/parse.h | 14 +++++++++++---
src/serialize.h | 14 +++++++++++---
src/tests.cpp | 8 ++++++++
src/tests.h | 14 +++++++++++---
src/types.h | 14 +++++++++++---
src/util.h | 14 +++++++++++---
24 files changed, 223 insertions(+), 36 deletions(-)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..5bb6791
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 David Simmons-Duffin
+
+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.
\ No newline at end of file
diff --git a/src/BlockDiagonalMatrix.cpp b/src/BlockDiagonalMatrix.cpp
index b0d3760..38ea457 100644
--- a/src/BlockDiagonalMatrix.cpp
+++ b/src/BlockDiagonalMatrix.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include "BlockDiagonalMatrix.h"
ostream& operator<<(ostream& os, const BlockDiagonalMatrix& A) {
diff --git a/src/BlockDiagonalMatrix.h b/src/BlockDiagonalMatrix.h
index 9ea258e..691e648 100644
--- a/src/BlockDiagonalMatrix.h
+++ b/src/BlockDiagonalMatrix.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_BLOCKDIAGONALMATRIX_H_
-#define SDP_BOOTSTRAP_BLOCKDIAGONALMATRIX_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_BLOCKDIAGONALMATRIX_H_
+#define SDPB_BLOCKDIAGONALMATRIX_H_
#include <vector>
#include <iostream>
@@ -112,4 +120,4 @@ void blockMatrixLowerTriangularTransposeSolve(BlockDiagonalMatrix &L, Matrix &B)
void blockMatrixLowerTriangularSolve(BlockDiagonalMatrix &L, Vector &v);
void blockMatrixLowerTriangularTransposeSolve(BlockDiagonalMatrix &L, Vector &v);
-#endif // SDP_BOOTSTRAP_MATRIX_H_
+#endif // SDPB_MATRIX_H_
diff --git a/src/Matrix.cpp b/src/Matrix.cpp
index ae108be..7023ce1 100644
--- a/src/Matrix.cpp
+++ b/src/Matrix.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include "Matrix.h"
ostream& operator<<(ostream& os, const Matrix& a) {
diff --git a/src/Matrix.h b/src/Matrix.h
index 6d206ac..fe54130 100644
--- a/src/Matrix.h
+++ b/src/Matrix.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_MATRIX_H_
-#define SDP_BOOTSTRAP_MATRIX_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_MATRIX_H_
+#define SDPB_MATRIX_H_
#include <assert.h>
#include <iostream>
@@ -183,4 +191,4 @@ void lowerTriangularTransposeSolve(Matrix &L, Vector &b);
// - X : dim x dim matrix
void matrixSolveWithCholesky(Matrix &ACholesky, Matrix &X);
-#endif // SDP_BOOTSTRAP_MATRIX_H_
+#endif // SDPB_MATRIX_H_
diff --git a/src/Polynomial.h b/src/Polynomial.h
index 4862fb7..853d42a 100644
--- a/src/Polynomial.h
+++ b/src/Polynomial.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_POLYNOMIAL_H_
-#define SDP_BOOTSTRAP_POLYNOMIAL_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_POLYNOMIAL_H_
+#define SDPB_POLYNOMIAL_H_
#include "types.h"
#include "util.h"
@@ -38,4 +46,4 @@ public:
};
-#endif // SDP_BOOTSTRAP_POLYNOMIAL_H_
+#endif // SDPB_POLYNOMIAL_H_
diff --git a/src/SDP.cpp b/src/SDP.cpp
index 09dcea7..476a1b4 100644
--- a/src/SDP.cpp
+++ b/src/SDP.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include "SDP.h"
Matrix sampleBilinearBasis(const int maxDegree,
diff --git a/src/SDP.h b/src/SDP.h
index 35d64d5..76a73dc 100644
--- a/src/SDP.h
+++ b/src/SDP.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_SDP_H_
-#define SDP_BOOTSTRAP_SDP_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_SDP_H_
+#define SDPB_SDP_H_
#include <vector>
#include <iostream>
@@ -134,4 +142,4 @@ SDP bootstrapSDP(const Vector &objective,
SDP bootstrapPolynomialSDP(const Vector &affineObjective,
const vector<PolynomialVectorMatrix> &polVectorMatrices);
-#endif // SDP_BOOTSTRAP_SDP_H_
+#endif // SDPB_SDP_H_
diff --git a/src/SDPSolver.cpp b/src/SDPSolver.cpp
index 311f596..1e5d307 100644
--- a/src/SDPSolver.cpp
+++ b/src/SDPSolver.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include <iostream>
#include "omp.h"
#include "boost/filesystem.hpp"
diff --git a/src/SDPSolver.h b/src/SDPSolver.h
index c0f0ae1..22941da 100644
--- a/src/SDPSolver.h
+++ b/src/SDPSolver.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_SDPSOLVER_H_
-#define SDP_BOOTSTRAP_SDPSOLVER_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_SDPSOLVER_H_
+#define SDPB_SDPSOLVER_H_
#include <iostream>
#include <ostream>
@@ -156,4 +164,4 @@ void printSolverInfo(int iteration,
int dualObjectiveSize,
int Qrows);
-#endif // SDP_BOOTSTRAP_SDPSOLVER_H_
+#endif // SDPB_SDPSOLVER_H_
diff --git a/src/SDPSolverIO.cpp b/src/SDPSolverIO.cpp
index 9193ea9..cbcf20c 100644
--- a/src/SDPSolverIO.cpp
+++ b/src/SDPSolverIO.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include <iostream>
#include <ostream>
#include <sstream>
diff --git a/src/Timers.h b/src/Timers.h
index e665f7a..bd39d49 100644
--- a/src/Timers.h
+++ b/src/Timers.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_TIMERS_H_
-#define SDP_BOOTSTRAP_TIMERS_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_TIMERS_H_
+#define SDPB_TIMERS_H_
#include <iostream>
#include <ostream>
@@ -25,4 +33,4 @@ public:
extern Timers timers;
-#endif // SDP_BOOTSTRAP_TIMERS_H_
+#endif // SDPB_TIMERS_H_
diff --git a/src/Vector.h b/src/Vector.h
index 04cfdcc..2be8583 100644
--- a/src/Vector.h
+++ b/src/Vector.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_VECTOR_H_
-#define SDP_BOOTSTRAP_VECTOR_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_VECTOR_H_
+#define SDPB_VECTOR_H_
#include <algorithm>
#include <vector>
@@ -45,4 +53,4 @@ inline Vector multiplyVectors(const Vector &u, const Vector &v) {
return w;
}
-#endif // SDP_BOOTSTRAP_VECTOR_H_
+#endif // SDPB_VECTOR_H_
diff --git a/src/main.cpp b/src/main.cpp
index b949a9c..36a58f1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include <iostream>
#include <iomanip>
#include <fstream>
diff --git a/src/mpack/RgemmParallel.cpp b/src/mpack/RgemmParallel.cpp
index 7d584c8..e760170 100644
--- a/src/mpack/RgemmParallel.cpp
+++ b/src/mpack/RgemmParallel.cpp
@@ -67,6 +67,8 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// Modified 2014 by David Simmons-Duffin for SDPB
+
/*
Based on http://www.netlib.org/blas/dgemm.f
Rgemm performs one of the matrix-matrix operations
diff --git a/src/mpack/Rpotf2Stabilized.cpp b/src/mpack/Rpotf2Stabilized.cpp
index e22f6fa..9caec67 100644
--- a/src/mpack/Rpotf2Stabilized.cpp
+++ b/src/mpack/Rpotf2Stabilized.cpp
@@ -65,6 +65,8 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// Modified 2014 by David Simmons-Duffin for SDPB
+
#include <mblas.h>
#include <mlapack.h>
diff --git a/src/mpack/RpotrfStabilized.cpp b/src/mpack/RpotrfStabilized.cpp
index c3cdd9c..5cf6167 100644
--- a/src/mpack/RpotrfStabilized.cpp
+++ b/src/mpack/RpotrfStabilized.cpp
@@ -65,6 +65,8 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// Modified 2014 by David Simmons-Duffin for SDPB
+
#include <mblas.h>
#include <mlapack.h>
diff --git a/src/parse.cpp b/src/parse.cpp
index 64801b1..0c23dfc 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include <vector>
#include "types.h"
#include "parse.h"
diff --git a/src/parse.h b/src/parse.h
index e527e2b..771b05e 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_PARSE_H_
-#define SDP_BOOTSTRAP_PARSE_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_PARSE_H_
+#define SDPB_PARSE_H_
#include "boost/filesystem.hpp"
#include "SDP.h"
@@ -8,4 +16,4 @@ using boost::filesystem::path;
SDP readBootstrapSDP(const path sdpFile);
-#endif // SDP_BOOTSTRAP_PARSE_H_
+#endif // SDPB_PARSE_H_
diff --git a/src/serialize.h b/src/serialize.h
index bfd24d2..7c4bb27 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_SERIALIZE_H_
-#define SDP_BOOTSTRAP_SERIALIZE_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_SERIALIZE_H_
+#define SDPB_SERIALIZE_H_
#include <string>
#include <vector>
@@ -73,4 +81,4 @@ BOOST_CLASS_VERSION(Real, 0)
BOOST_CLASS_TRACKING(Matrix, boost::serialization::track_never)
BOOST_CLASS_TRACKING(BlockDiagonalMatrix, boost::serialization::track_never)
-#endif // SDP_BOOTSTRAP_SERIALIZE_H_
+#endif // SDPB_SERIALIZE_H_
diff --git a/src/tests.cpp b/src/tests.cpp
index 1643971..e0f8a65 100644
--- a/src/tests.cpp
+++ b/src/tests.cpp
@@ -1,3 +1,11 @@
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
#include <vector>
#include <iostream>
#include "types.h"
diff --git a/src/tests.h b/src/tests.h
index 1e3ad2f..dd585ce 100644
--- a/src/tests.h
+++ b/src/tests.h
@@ -1,6 +1,14 @@
-#ifndef SDP_BOOTSTRAP_TESTS_H_
-#define SDP_BOOTSTRAP_TESTS_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_TESTS_H_
+#define SDPB_TESTS_H_
void testCholeskyStabilize();
-#endif // SDP_BOOTSTRAP_TESTS_H_
+#endif // SDPB_TESTS_H_
diff --git a/src/types.h b/src/types.h
index 748ccbe..e84fb3d 100644
--- a/src/types.h
+++ b/src/types.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_TYPES_H_
-#define SDP_BOOTSTRAP_TYPES_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_TYPES_H_
+#define SDPB_TYPES_H_
#include <mblas.h>
#include <mlapack.h>
@@ -46,4 +54,4 @@ inline int getPrecision(const Real &r) {
}
#endif
-#endif // SDP_BOOTSTRAP_TYPES_H_
+#endif // SDPB_TYPES_H_
diff --git a/src/util.h b/src/util.h
index 75247ee..8906b65 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,5 +1,13 @@
-#ifndef SDP_BOOTSTRAP_UTIL_H_
-#define SDP_BOOTSTRAP_UTIL_H_
+//=======================================================================
+// Copyright 2014 David Simmons-Duffin.
+// Distributed under the MIT License.
+// (See accompanying file LICENSE or copy at
+// http://opensource.org/licenses/MIT)
+//=======================================================================
+
+
+#ifndef SDPB_UTIL_H_
+#define SDPB_UTIL_H_
#include <algorithm>
#include <iostream>
@@ -38,4 +46,4 @@ Iter binaryFind(Iter begin, Iter end, T val)
return end; // not found
}
-#endif // SDP_BOOTSTRAP_UTIL_H_
+#endif // SDPB_UTIL_H_
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sdpb.git
More information about the debian-science-commits
mailing list