File view_vector_binned.hpp

template<typename Vector>
class BinnedVectorDecorator : public Vector<T>
#include <view_vector_binned.hpp>

A vector that is backed by two one-dimensional views, storing bin indices and the values of the corresponding bins.

Template Parameters:

Vector – The type of the vector

Public Functions

inline BinnedVectorDecorator(typename Vector::view_type &&view)
Parameters:

view – The view, the vector should be backed by

inline virtual ~BinnedVectorDecorator() override
inline uint32 getNumBins() const

Returns the number of bins in the vector.

Returns:

The number of bins