3 #ifndef BARRY_BARRAYDENSECELL_BONES_HPP
4 #define BARRY_BARRAYDENSECELL_BONES_HPP 1
6 #define POS(a, b) (a) + (b) * N
8 template<
typename Cell_Type,
typename Data_Type>
11 template<
typename Cell_Type,
typename Data_Type>
14 template<
typename Cell_Type,
typename Data_Type>
17 template <
typename Cell_Type =
bool,
typename Data_Type =
bool>
34 bool check_bounds =
true
42 if (
i >= Array_->
nrow())
43 throw std::length_error(
"Row out of range.");
44 if (
j >= Array_->
ncol())
45 throw std::length_error(
"Col out of range.");
63 operator Cell_Type()
const;
void operator/=(const Cell_Type &val)
void operator+=(const Cell_Type &val)
bool operator==(const Cell_Type &val) const
BArrayDenseCell(BArrayDense< Cell_Type, Data_Type > *Array_, size_t i_, size_t j_, bool check_bounds=true)
BArrayDenseCell< Cell_Type, Data_Type > & operator=(const BArrayDenseCell< Cell_Type, Data_Type > &other)
void operator*=(const Cell_Type &val)
void operator-=(const Cell_Type &val)
Baseline class for binary arrays.
size_t ncol() const noexcept
size_t nrow() const noexcept