diff options
author | Ulrich Bauer <mail@ulrich-bauer.org> | 2016-08-05 11:16:59 +0200 |
---|---|---|
committer | Ulrich Bauer <mail@ulrich-bauer.org> | 2016-08-05 11:17:05 +0200 |
commit | 54d59b1e621828a355efcb4547ba4657d297230b (patch) | |
tree | 67f4c34e64923a65e2a2d2c1887101d19c39c6d5 /ripser.cpp | |
parent | 364442bb2dacbe64700872f5756d92aaaad0fc2c (diff) |
point cloud dimension output / assert
Diffstat (limited to 'ripser.cpp')
-rw-r--r-- | ripser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |