diff options
author | Ulrich Bauer <mail@ulrich-bauer.org> | 2016-08-18 18:21:08 +0200 |
---|---|---|
committer | Ulrich Bauer <mail@ulrich-bauer.org> | 2016-08-18 18:21:08 +0200 |
commit | c130a8b6dd389456eb7d09f53f6fe676358db3d6 (patch) | |
tree | 3b485f646ce1a07a84635f3b7143839a71ed8c66 | |
parent | 0a984f22f4c90c7a9d45b57187a6db128558d12c (diff) |
added reduction matrix option to Makefile
updated readme
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | README.md | 4 |
2 files changed, 7 insertions, 4 deletions
@@ -1,7 +1,7 @@ build: ripser -all: ripser ripser-coeff +all: ripser ripser-coeff ripser-reduction ripser: ripser.cpp @@ -10,6 +10,9 @@ ripser: ripser.cpp ripser-coeff: ripser.cpp c++ -std=c++11 ripser.cpp -o ripser-coeff -Ofast -D NDEBUG -D USE_COEFFICIENTS +ripser-reduction: ripser.cpp + c++ -std=c++11 ripser.cpp -o ripser-reduction -Ofast -D NDEBUG -D ASSEMBLE_REDUCTION_MATRIX + clean: - rm ripser ripser-coeff
\ No newline at end of file + rm -f ripser ripser-coeff ripser-reduction @@ -53,7 +53,7 @@ make Ripser supports several compile-time options. They are switched on by defining the C preprocessor macros listed below, either using `#define` in the code or by passing an argument to the compiler. The following options are supported: - - `ASSEMBLE_REDUCTION_MATRIX`: store the reduction matrix; may speed up computation but will also increase memory usage + - `ASSEMBLE_REDUCTION_MATRIX`: store the reduction matrix; may affect computation time but also memory usage; recommended for large and difficult problem instances - `USE_COEFFICIENTS`: enable support for coefficients in a prime field - `INDICATE_PROGRESS`: indicate the current progress in the console - `PRINT_PERSISTENCE_PAIRS`: output the computed persistence pairs (enabled by default in the code; comment out to disable) @@ -65,7 +65,7 @@ For example, to build Ripser with support for coefficients: $ c++ -std=c++11 ripser.cpp -o ripser -Ofast -D NDEBUG -D USE_COEFFICIENTS ``` -A Makefile is provided with some variants of the above options. Use `make all` to build them. The default `make` builds a binary without any of the above option. +A Makefile is provided with some variants of the above options. Use `make all` to build them. The default `make` builds a binary with the default options. The input is given either in a file whose name is passed as an argument, or through stdin. The following options are supported at the command line: |