-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Steps to reproduce
-
Generating a lower distance matrix in binary format
Create a filegen.py
with the following content, then run it in a virtual environment where NumPy is installed:import numpy as np arr = np.array([1, 1, 1], dtype=np.float32) arr.tofile('data.bin')
python3 gen.py
-
Compiling Ripser
Compile Ripser with the following flags:c++ ripser.cpp -o ripser -std=c++11
-
Run the program
./ripser --format binary data.bin
-
Observe that the program crashes with the following assertion failure:
ripser: ripser.cpp:223: compressed_distance_matrix<Layout>::compressed_distance_matrix(std::vector<float>&&) [with compressed_matrix_layout Layout = LOWER_TRIANGULAR]: Assertion `distances.size() == size() * (size() - 1) / 2' failed.
Metadata
Metadata
Assignees
Labels
No labels