diff options
author | pdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-21 12:26:22 +0000 |
---|---|---|
committer | pdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-21 12:26:22 +0000 |
commit | 19451e20b6d47b6a84d5ad89d99497e0e60cd377 (patch) | |
tree | d10ab5934dd78ae943070ec131ad0241e360b892 /src/Gudhi_stat/example/persistence_heat_maps.cpp | |
parent | 60ded8e74aaec4fa519162dd15276c072f2acb2e (diff) |
The library changed from inherritance to templates.
Are the files from include/abstract removed?
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/gudhi_stat@1741 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 6f768b08a7a900a56278adcf371a31840916d3ba
Diffstat (limited to 'src/Gudhi_stat/example/persistence_heat_maps.cpp')
-rw-r--r-- | src/Gudhi_stat/example/persistence_heat_maps.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Gudhi_stat/example/persistence_heat_maps.cpp b/src/Gudhi_stat/example/persistence_heat_maps.cpp index 7f5580da..645f63f7 100644 --- a/src/Gudhi_stat/example/persistence_heat_maps.cpp +++ b/src/Gudhi_stat/example/persistence_heat_maps.cpp @@ -75,17 +75,17 @@ int main( int argc , char** argv ) median.compute_median( vector_of_maps ); //to compute L^1 disance between hm1 and hm2: - std::cout << "The L^1 distance is : " << hm1.distance( (Abs_Topological_data_with_distances*)(&hm2) , 1 ) << std::endl; + std::cout << "The L^1 distance is : " << hm1.distance( hm2 , 1 ) << std::endl; //to average of hm1 and hm2: - std::vector< Abs_Topological_data_with_averages* > to_average; - to_average.push_back( (Abs_Topological_data_with_averages*)(&hm1) ); - to_average.push_back( (Abs_Topological_data_with_averages*)(&hm2) ); + std::vector< Persistence_heat_maps* > to_average; + to_average.push_back( &hm1 ); + to_average.push_back( &hm2 ); Persistence_heat_maps av; av.compute_average( to_average ); //to compute scalar product of hm1 and hm2: - std::cout << "Scalar product is : " << hm1.compute_scalar_product( (Abs_Topological_data_with_scalar_product*)(&hm2) ) << std::endl; + std::cout << "Scalar product is : " << hm1.compute_scalar_product( hm2 ) << std::endl; return 0; } |