diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-06-02 14:00:20 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-06-02 14:00:20 +0000 |
commit | 4ba017094d3246cd8fe917a6c45443ba25d74b1d (patch) | |
tree | 92de401a87ee26f96c211543340b08331d58df7f /src/Persistence_representations/utilities/persistence_heat_maps/compute_distance_of_persistence_heat_maps.cpp | |
parent | 3736caa9ed742f985d743b9c959442d331110050 (diff) |
Fix some cpplint
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_representation_integration@2502 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 0a6422b0fa27105b9aaba743371da3328d9039be
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.cpp | 10 |
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); } |