summaryrefslogtreecommitdiff
path: root/src/Subsampling
diff options
context:
space:
mode:
authorcjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-04 13:56:12 +0000
committercjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-04 13:56:12 +0000
commite7edd8a70065e882da088de12aba86d3a8d82bb7 (patch)
treebd7fd821f2e7dd1f7053d199964cfd32a429f285 /src/Subsampling
parent9356208327a9784b570b96ce5007f785c2abebef (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
Diffstat (limited to 'src/Subsampling')
-rw-r--r--src/Subsampling/include/gudhi/pick_n_random_points.h5
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);