switch to rational numbers + add variable type matrix library

This commit is contained in:
Florian Stecker
2020-07-01 21:26:42 -05:00
parent c19f61b714
commit c566a8741e
5 changed files with 379 additions and 171 deletions

View File

@@ -1,16 +1,16 @@
HEADERS=triangle.h linalg.h queue.h
HEADERS=triangle.h linalg.h queue.h mat.h
#SPECIAL_OPTIONS=-O0 -g -D_DEBUG
#SPECIAL_OPTIONS=-O3 -pg -funroll-loops -fno-inline
SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline
SPECIAL_OPTIONS=-O3 -pg -funroll-loops -fno-inline
#SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline
#SPECIAL_OPTIONS=
OPTIONS=-m64 -march=native -mtune=native -std=gnu99 -D_GNU_SOURCE $(SPECIAL_OPTIONS)
all: singular_values
singular_values: singular_values.o triangle.o linalg.o
gcc $(OPTIONS) -o singular_values triangle.o linalg.o singular_values.o -lm -lgsl -lcblas
singular_values: singular_values.o triangle.o linalg.o mat.o
gcc $(OPTIONS) -o singular_values triangle.o linalg.o singular_values.o mat.o -lm -lgsl -lcblas -lgmp
singular_values.o: singular_values.c $(HEADERS)
gcc $(OPTIONS) -c singular_values.c
@@ -21,5 +21,8 @@ linalg.o: linalg.c $(HEADERS)
triangle.o: triangle.c $(HEADERS)
gcc $(OPTIONS) -c triangle.c
mat.o: mat.c $(HEADERS)
gcc $(OPTIONS) -c mat.c
clean:
rm -f singular_values triangle.o linalg.o singular_values.o
rm -f singular_values triangle.o linalg.o singular_values.o mat.o