|
xgboost
|
Transform iterator that takes an index and calls transform operator. More...
#include <common.h>

Public Types | |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = std::result_of_t< Fn(size_t)> |
| using | difference_type = detail::ptrdiff_t |
| using | reference = std::add_lvalue_reference_t< value_type > |
| using | pointer = std::add_pointer_t< value_type > |
Public Member Functions | |
| IndexTransformIter (Fn &&op) | |
| IndexTransformIter (IndexTransformIter const &)=default | |
| IndexTransformIter & | operator= (IndexTransformIter &&)=default |
| IndexTransformIter & | operator= (IndexTransformIter const &that) |
| value_type | operator* () const |
| auto | operator- (IndexTransformIter const &that) const |
| bool | operator== (IndexTransformIter const &that) const |
| bool | operator!= (IndexTransformIter const &that) const |
| IndexTransformIter & | operator++ () |
| IndexTransformIter | operator++ (int) |
| IndexTransformIter & | operator+= (difference_type n) |
| IndexTransformIter & | operator-= (difference_type n) |
| IndexTransformIter | operator+ (difference_type n) const |
| IndexTransformIter | operator- (difference_type n) const |
Transform iterator that takes an index and calls transform operator.
This is CPU-only right now as taking host device function as operator complicates the code. For device side one can use thrust::transform_iterator instead.
| using xgboost::common::IndexTransformIter< Fn >::difference_type = detail::ptrdiff_t |
| using xgboost::common::IndexTransformIter< Fn >::iterator_category = std::random_access_iterator_tag |
| using xgboost::common::IndexTransformIter< Fn >::pointer = std::add_pointer_t<value_type> |
| using xgboost::common::IndexTransformIter< Fn >::reference = std::add_lvalue_reference_t<value_type> |
| using xgboost::common::IndexTransformIter< Fn >::value_type = std::result_of_t<Fn(size_t)> |
|
inlineexplicit |
| op | Transform operator, takes a size_t index as input. |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
inline |
|
inline |
1.8.17