ppforest2
v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
RangeVector.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
#include <numeric>
5
#include <vector>
6
7
namespace
ppforest2::utils
{
26
template
<
typename
Size>
inline
std::vector<int>
range_vector
(Size n) {
27
std::vector<int> result(
static_cast<
std::size_t
>
(n));
28
std::iota(result.begin(), result.end(), 0);
29
return
result;
30
}
31
}
ppforest2::utils
Utility functions for std::map manipulation.
Definition
Map.hpp:7
ppforest2::utils::range_vector
std::vector< int > range_vector(Size n)
Build the sequence [0, 1, ..., n - 1] as std::vector<int>.
Definition
RangeVector.hpp:26
core
src
utils
RangeVector.hpp
Generated by
1.13.2