Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
* dev:
  updated version number in readme
  explicit word sizes for index_t and coefficient_t
  pretty-print
  removed unneccesary check in file reader
  cleanup
  changed to more general default format
  added debug version to makefile
  cleaned up detection of apparent persistence pairs
  packed entry_t
  cleanup
  cleanup
  union find implementation
  union find for H^0
  fixed compressed_distance_matrix access
  cleanup
  cleanup to remove compiler warning
  added reduction matrix option to Makefile updated readme
  fixed csv reader
  fixed format selection for distance matrix
  • Loading branch information
ubauer committed Sep 15, 2016
2 parents 5b79f97 + 7d5c7bb commit 130f035
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 127 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
ColumnLimit: 100
ColumnLimit: 120
AccessModifierOffset: -4
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
build: ripser


all: ripser ripser-coeff
all: ripser ripser-coeff ripser-reduction ripser-debug


ripser: ripser.cpp
Expand All @@ -10,6 +10,12 @@ 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

ripser-debug: ripser.cpp
c++ -std=c++11 ripser.cpp -o ripser-debug -g


clean:
rm ripser ripser-coeff
rm -f ripser ripser-coeff ripser-reduction ripser-debug
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Ripser's efficiency is based on a few important concepts and principles:


### Version
[Latest release][latest-release]: 1.0 (July 2016)
[Latest release][latest-release]: 1.0.1 (September 2016)


### Building
Expand All @@ -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)
Expand All @@ -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:

Expand Down
Loading

0 comments on commit 130f035

Please sign in to comment.