summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp')
-rw-r--r--src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp b/src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp
index 56b2d336..a9e8821f 100644
--- a/src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp
+++ b/src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp
@@ -22,14 +22,14 @@
#include <gudhi/Persistence_heat_maps.h>
-using namespace Gudhi;
-using namespace Gudhi::Persistence_representations;
-
#include <iostream>
#include <sstream>
#include <limits>
#include <vector>
+using constant_scaling_function = Gudhi::Persistence_representations::constant_scaling_function;
+using Persistence_heat_maps = Gudhi::Persistence_representations::Persistence_heat_maps<constant_scaling_function>;
+
int main(int argc, char** argv) {
std::cout << "This program compute distance of persistence heat maps stored in a file (the file needs to be created "
"beforehand). \n";
@@ -52,10 +52,10 @@ int main(int argc, char** argv) {
for (int i = 2; i < argc; ++i) {
filenames.push_back(argv[i]);
}
- std::vector<Persistence_heat_maps<constant_scaling_function> > maps;
+ std::vector<Persistence_heat_maps> maps;
maps.reserve(filenames.size());
for (size_t file_no = 0; file_no != filenames.size(); ++file_no) {
- Persistence_heat_maps<constant_scaling_function> l;
+ Persistence_heat_maps l;
l.load_from_file(filenames[file_no]);
maps.push_back(l);
}