[sdpb] 37/233: Removed old files
Tobias Hansen
thansen at moszumanska.debian.org
Thu Mar 9 04:06:15 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 536707a3123dce794bba3e9fa590f3130d18e1f3
Author: David Simmons-Duffin <dsd at athena.sns.ias.edu>
Date: Sat Jul 26 19:46:10 2014 -0400
Removed old files
---
SquareMatrix.h | 56 ------------------------------------------------
parse.cpp | 67 ----------------------------------------------------------
parse.h | 10 ---------
3 files changed, 133 deletions(-)
diff --git a/SquareMatrix.h b/SquareMatrix.h
deleted file mode 100644
index 9026201..0000000
--- a/SquareMatrix.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef SDP_BOOTSTRAP_SQUAREMATRIX_H_
-#define SDP_BOOTSTRAP_SQUAREMATRIX_H_
-
-#include <vector>
-#include <assert.h>
-#include <ostream>
-#include "types.h"
-
-using std::vector;
-using std::ostream;
-
-class Matrix {
- public:
- int rows;
- int cols;
- vector<Real> elements;
-
- Matrix(int rows, int cols):
- rows(rows),
- cols(cols),
- elements(vector<Real>(rows*cols, 0)) {}
-
- inline Real get(int r, int c) const {
- return elements[r + c*rows];
- }
-
- inline void set(int r, int c, const Real &a) {
- elements[r + c*rows] = a;
- }
-
- void setZero() {
- std::fill(elements.begin(), elements.end(), 0);
- }
-
- void setIdentity() {
- assert(rows == cols);
-
- setZero();
- for (int i = 0; i < rows; i++)
- elements[i * (rows + 1)] = 1;
- }
-
- friend ostream& operator<<(ostream& os, const Matrix& a);
-};
-
-void blockMatrixCongruence(const Matrix &a, const Matrix &b, Matrix &work, Matrix &result);
-
-void choleskyDecomposition(Matrix &a, Matrix &result);
-
-void inverseLowerTriangular(Matrix &a, Matrix &result);
-
-void inverseCholesky(Matrix &a, Matrix &work, Matrix &result);
-
-void inverseCholeskyAndInverse(Matrix &a, Matrix &work, Matrix &invCholesky, Matrix &inverse);
-
-#endif // SDP_BOOTSTRAP_SQUAREMATRIX_H_
diff --git a/parse.cpp b/parse.cpp
deleted file mode 100644
index 4cb7788..0000000
--- a/parse.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// Author(s): D. Simmons-Duffin, April-October 2013
-
-#include <vector>
-#include "parse.h"
-#include "tinyxml2.h"
-
-using tinyxml2::XMLDocument;
-using tinyxml2::XMLElement;
-
-template <class T>
-vector<T> parseMany(const char *name, T(*parse)(XMLElement *), XMLElement *elt) {
- XMLElement *e;
- vector<T> v;
- for (e = elt->FirstChildElement(name);
- e != NULL;
- e = e->NextSiblingElement(name)) {
- v.push_back(parse(e));
- }
- return v;
-}
-
-Real parseReal(XMLElement *rElt) {
- return Real(rElt->GetText());
-}
-
-Polynomial parsePolynomial(XMLElement *polElt) {
- Polynomial p;
- p.coeffs = parseMany("coeff", parseReal, polElt);
- return p;
-}
-
-vector<Real> parseVector(XMLElement *vecElt) {
- return parseMany("coord", parseReal, vecElt);
-}
-
-DampedPartialFraction parseDampedPartialFraction(XMLElement *dprElt) {
- Real rho = parseReal(dprElt->FirstChildElement("rho"));
- Polynomial pol = parsePolynomial(dprElt->FirstChildElement("polynomial"));
- vector<Real> poles = parseMany("pole", parseReal, dprElt->FirstChildElement("poles"));
- vector<Real> residues = parseMany("residue", parseReal, dprElt->FirstChildElement("residues"));
- return DampedPartialFraction(rho, pol, poles, residues);
-}
-
-DampedPartialFractionVector parseDampedPartialFractionVector(XMLElement *vElt) {
- DampedPartialFractionVector v;
- v.components = parseMany("dampedPartialFraction", parseDampedPartialFraction, vElt);
- v.xLeft = 0;
- v.xRight = 40;
- return v;
-}
-
-SemiInfiniteProgram parseSemiInfiniteProgram(XMLElement *sipElt) {
- SemiInfiniteProgram sip;
- sip.norm = parseVector(sipElt->FirstChildElement("norm")->FirstChildElement("vector"));
- sip.points = parseMany("vector", parseVector, sipElt->FirstChildElement("vectors"));
- sip.curves = parseMany("dampedPartialFractionVector",
- parseDampedPartialFractionVector,
- sipElt->FirstChildElement("curves"));
- sip.pointObj.resize(sip.points.size());
- return sip;
-}
-
-SemiInfiniteProgram readSemiInfiniteProgram(const char*sipFile) {
- XMLDocument doc;
- doc.LoadFile(sipFile);
- return parseSemiInfiniteProgram(doc.FirstChildElement("semiInfiniteProgram"));
-}
diff --git a/parse.h b/parse.h
deleted file mode 100644
index bb3324b..0000000
--- a/parse.h
+++ /dev/null
@@ -1,10 +0,0 @@
-// Author(s): D. Simmons-Duffin, April-October 2013
-
-#ifndef SIP_SOLVE_PARSE_H_
-#define SIP_SOLVE_PARSE_H_
-
-#include "SIPSolver.h"
-
-SemiInfiniteProgram readSemiInfiniteProgram(const char*);
-
-#endif // SIP_SOLVE_PARSE_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