summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp')
-rw-r--r--src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp b/src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp
index ec9482f0..1cee1f82 100644
--- a/src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp
+++ b/src/Persistence_representations/utilities/persistence_heat_maps/compute_scalar_product_of_persistence_heat_maps.cpp
@@ -22,13 +22,13 @@
#include <gudhi/Persistence_heat_maps.h>
-using namespace Gudhi;
-using namespace Gudhi::Persistence_representations;
-
#include <iostream>
#include <sstream>
#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 scalar product of persistence landscapes stored in a file (the file needs to be "
"created beforehand). \n";
@@ -38,10 +38,10 @@ int main(int argc, char** argv) {
for (int i = 1; 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);
}