summaryrefslogtreecommitdiff
path: root/ripser.cpp
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2016-08-05 11:16:59 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2016-08-05 11:17:05 +0200
commit54d59b1e621828a355efcb4547ba4657d297230b (patch)
tree67f4c34e64923a65e2a2d2c1887101d19c39c6d5 /ripser.cpp
parent364442bb2dacbe64700872f5756d92aaaad0fc2c (diff)
point cloud dimension output / assert
Diffstat (limited to 'ripser.cpp')
-rw-r--r--ripser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ripser.cpp b/ripser.cpp
index 89994a8..9b74b8f 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -770,13 +770,14 @@ int main(int argc, char** argv) {
std::istringstream s(line);
while (s >> value) point.push_back(value);
if (!point.empty()) points.push_back(point);
+ assert(point.size() == points.front().size());
}
euclidean_distance_matrix eucl_dist(std::move(points));
index_t n = eucl_dist.size();
- std::cout << "point cloud with " << n << " points" << std::endl;
+ std::cout << "point cloud with " << n << " points in dimension " << eucl_dist.points.front().size() << std::endl;
std::vector<value_t> distances;