aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/GHquad.c33
-rw-r--r--python/GHquad.h1
-rw-r--r--python/Makefile7
3 files changed, 0 insertions, 41 deletions
diff --git a/python/GHquad.c b/python/GHquad.c
deleted file mode 100644
index 8dafb2b1..00000000
--- a/python/GHquad.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "stdlib.h"
-#include "math.h"
-#include "GHquad.h"
-
-extern int dstev_(char* JOBZ, int* n, double* D, double* E, double* Z, int* ldz, double* WORK, int* INFO);
-
-void GHquad(int n, double* Z, double* w) {
- // Setup for eigenvalue computations
- char JOBZ = 'V'; // Compute eigenvalues & vectors
- int INFO;
- int i;
- // Initialize array for workspace
- double * WORK = malloc(sizeof(double)*(2*n-2));
-
- // Initialize array for eigenvectors
- double * V = malloc(sizeof(double)*n*n);
-
- for(i = 0; i<n-1; i++){
- w[i] = sqrt((i+1.)/2);
- }
-
- // Run eigen decomposition
- dstev_(&JOBZ, &n, Z, w, V, &n, WORK, &INFO);
-
- for (i=0; i<n; i++) {
- w[i] = V[i*n] * V[i*n];
- Z[i] *= sqrt(2);
- }
-
- // Deallocate temporary arrays
- free(WORK);
- free(V);
-}
diff --git a/python/GHquad.h b/python/GHquad.h
deleted file mode 100644
index f48f136d..00000000
--- a/python/GHquad.h
+++ /dev/null
@@ -1 +0,0 @@
-extern void GHQuad(int n, double* Z, double* w);
diff --git a/python/Makefile b/python/Makefile
index a0658eaa..507c788b 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -1,7 +1,3 @@
-CFLAGS=-O2 -march=native -fpic
-LDLIBS=-lm -llapack
-LDFLAGS=-fpic -shared
-
tests:
cd tests; \
python -m unittest discover -v
@@ -9,10 +5,7 @@ tests:
tags:
ctags -e --python-kinds=-iv --exclude='*.js' -R .
-GHquad.so: GHquad.o
- $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS)
clean:
- rm -f GHquad.o GHquad.so
.PHONY: clean tests