CLUEstering
High-performance density-based weighted clustering library developed at CERN
|
The PointsHost class is a data structure that manages points in host memory. It provides methods to allocate, access, and manipulate points in host memory. More...
#include <PointsHost.hpp>
Classes | |
class | Point |
Public Member Functions | |
template<concepts::queue TQueue> | |
PointsHost (TQueue &queue, int32_t n_points) | |
template<concepts::queue TQueue> | |
PointsHost (TQueue &queue, int32_t n_points, std::span< std::byte > buffer) | |
template<concepts::queue TQueue, std::ranges::contiguous_range... TBuffers> requires (sizeof...(TBuffers) == 2 || sizeof...(TBuffers) == 4) | |
PointsHost (TQueue &queue, int32_t n_points, TBuffers &&... buffers) | |
template<concepts::queue TQueue, concepts::contiguous_raw_data... TBuffers> requires (sizeof...(TBuffers) == 2 || sizeof...(TBuffers) == 4) | |
PointsHost (TQueue &queue, int32_t n_points, TBuffers... buffers) | |
PointsHost (const PointsHost &)=delete | |
PointsHost & | operator= (const PointsHost &)=delete |
PointsHost (PointsHost &&)=default | |
PointsHost & | operator= (PointsHost &&)=default |
ALPAKA_FN_HOST int32_t | size () const |
Returns the number of points. | |
ALPAKA_FN_HOST auto | coords () const |
Returns the coordinates of the points as a const span. | |
ALPAKA_FN_HOST auto | coords () |
Returns the coordinates of the points as a span. | |
ALPAKA_FN_HOST auto | coords (size_t dim) const |
Returns the coordinates of the points for a specific dimension as a const span. | |
ALPAKA_FN_HOST auto | coords (size_t dim) |
Returns the coordinates of the points for a specific dimension as a span. | |
ALPAKA_FN_HOST auto | weights () const |
Returns the weights of the points as a const span. | |
ALPAKA_FN_HOST auto | weights () |
Returns the weights of the points as a span. | |
ALPAKA_FN_HOST auto | clusterIndexes () const |
Returns the cluster indexes of the points as a const span. | |
ALPAKA_FN_HOST auto | clusterIndexes () |
Returns the cluster indexes of the points as a span. | |
ALPAKA_FN_HOST auto | isSeed () const |
Returns the seed status of the points as a const span. | |
ALPAKA_FN_HOST auto | isSeed () |
Returns the seed status of the points as a span. | |
ALPAKA_FN_HOST const auto & | view () const |
Returns the view of the points. | |
ALPAKA_FN_HOST auto & | view () |
Returns the view of the points. | |
Point | operator[] (std::size_t idx) const |
Friends | |
struct | internal::points_interface< PointsHost< Ndim > > |
template<concepts::queue _TQueue, uint8_t _Ndim, concepts::device _TDev> | |
void | copyToHost (_TQueue &queue, PointsHost< _Ndim > &h_points, const PointsDevice< _Ndim, _TDev > &d_points) |
template<concepts::queue _TQueue, uint8_t _Ndim, concepts::device _TDev> | |
void | copyToDevice (_TQueue &queue, PointsDevice< _Ndim, _TDev > &d_points, const PointsHost< _Ndim > &h_points) |
The PointsHost class is a data structure that manages points in host memory. It provides methods to allocate, access, and manipulate points in host memory.
Ndim | The number of dimensions of the points to manage |
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::clusterIndexes | ( | ) |
Returns the cluster indexes of the points as a span.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::clusterIndexes | ( | ) | const |
Returns the cluster indexes of the points as a const span.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::coords | ( | ) |
Returns the coordinates of the points as a span.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::coords | ( | ) | const |
Returns the coordinates of the points as a const span.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::coords | ( | size_t | dim | ) |
Returns the coordinates of the points for a specific dimension as a span.
dim | The dimension for which to get the coordinates |
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::coords | ( | size_t | dim | ) | const |
Returns the coordinates of the points for a specific dimension as a const span.
dim | The dimension for which to get the coordinates |
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::isSeed | ( | ) |
Returns the seed status of the points as a span.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::isSeed | ( | ) | const |
Returns the seed status of the points as a const span.
ALPAKA_FN_HOST int32_t clue::PointsHost< Ndim >::size | ( | ) | const |
Returns the number of points.
ALPAKA_FN_HOST auto & clue::PointsHost< Ndim >::view | ( | ) |
Returns the view of the points.
ALPAKA_FN_HOST const auto & clue::PointsHost< Ndim >::view | ( | ) | const |
Returns the view of the points.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::weights | ( | ) |
Returns the weights of the points as a span.
ALPAKA_FN_HOST auto clue::PointsHost< Ndim >::weights | ( | ) | const |
Returns the weights of the points as a const span.