diff options
author | cjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-04 13:56:12 +0000 |
---|---|---|
committer | cjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-04 13:56:12 +0000 |
commit | e7edd8a70065e882da088de12aba86d3a8d82bb7 (patch) | |
tree | bd7fd821f2e7dd1f7053d199964cfd32a429f285 | |
parent | 9356208327a9784b570b96ce5007f785c2abebef (diff) |
Use std::size_t instead of unsigned
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/subsampling_and_spatialsearching@1625 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: cfc0013c1247512eb4899809975266a971d57c34
-rw-r--r-- | src/Subsampling/include/gudhi/pick_n_random_points.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Subsampling/include/gudhi/pick_n_random_points.h b/src/Subsampling/include/gudhi/pick_n_random_points.h index 4ca1fafc..b8f4900a 100644 --- a/src/Subsampling/include/gudhi/pick_n_random_points.h +++ b/src/Subsampling/include/gudhi/pick_n_random_points.h @@ -25,6 +25,7 @@ #include <boost/range/size.hpp> +#include <cstddef> #include <random> // random_device, mt19937 #include <algorithm> // shuffle #include <numeric> // iota @@ -48,13 +49,13 @@ namespace subsampling { template <typename Point_container, typename OutputIterator> void pick_n_random_points(Point_container const &points, - unsigned final_size, + std::size_t final_size, OutputIterator output_it) { #ifdef GUDHI_SUBS_PROFILING Gudhi::Clock t; #endif - unsigned nbP = boost::size(points); + std::size_t nbP = boost::size(points); assert(nbP >= final_size); std::vector<int> landmarks(nbP); std::iota(landmarks.begin(), landmarks.end(), 0); |