1 #ifndef BARRY_BARRAYDENSECOL_BONES
2 #define BARRY_BARRAYDENSECOL_BONES
4 #define POS(a,b) (b)*N + (a)
5 #define POS_N(a,b,c) (b)*(c) + (a)
6 #define ZERO_CELL static_cast<Cell_Type>(0.0)
8 template <
typename Cell_Type =
bool,
typename Data_Type =
bool>
17 bool col_filled =
false;
24 for (
size_t i = 0u;
i < array->N; ++
i)
28 col[
i] = col[
POS_N(
i, index, array->N)];
41 ) : array(&array_), index(
j) {};
70 template <
typename Cell_Type =
bool,
typename Data_Type =
bool>
83 ) : array(&array_), index(
j)
86 for (
size_t i = 0u;
i < array->N; ++
i)
90 col[
i] = col[
POS_N(
i, index, array->N)];
Col_type< Cell_Type >::iterator end()
BArrayDenseCol_const(const BArrayDense< Cell_Type, Data_Type > &array_, size_t j)
size_t size() const noexcept
const std::pair< size_t, Cell_Type * > operator()(size_t i) const
Col_type< Cell_Type >::iterator begin()
Col_type< Cell_Type >::iterator & begin()
BArrayDenseCol(BArrayDense< Cell_Type, Data_Type > &array_, size_t j)
Col_type< Cell_Type >::iterator & end()
std::pair< size_t, Cell_Type * > & operator()(size_t i)
size_t size() const noexcept
Baseline class for binary arrays.
Data_Type &&counter_ noexcept
Map< size_t, Cell< Cell_Type > * > Col_type