1 #ifndef BARRY_BARRAYROW_MEAT_HPP
2 #define BARRY_BARRAYROW_MEAT_HPP 1
4 #define BROW_TYPE() BArrayRow<Cell_Type, Data_Type>
6 #define BROW_TEMPLATE_ARGS() <typename Cell_Type, typename Data_Type>
8 #define BROW_TEMPLATE(a,b) \
9 template BROW_TEMPLATE_ARGS() inline a BROW_TYPE()::b
14 this->Array->zero_row(
j);
18 Array->inser_cell(
i, v.first, v.second);
28 this->Array->operator(
i, v.first) += v.second;
39 this->Array->operator(
i, v.first) -= v.second;
49 if (!Array->is_empty(
i,
j,
false)) {
50 Array->el_ij.at(
i).at(
j).value *= val;
59 if (!Array->is_empty(
i,
j,
false)) {
60 Array->el_ij.at(
i).at(
j).value /= val;
65 template<
typename Cell_Type,
typename Data_Type>
67 return Array->get_cell(
i,
j,
false);
70 template<
typename Cell_Type,
typename Data_Type>
72 return Array->get_cell(
i,
j,
false) ==
static_cast<Cell_Type
>(val);
75 template<
typename Cell_Type,
typename Data_Type>
77 return Array->get_cell(
i,
j,
false);
80 template<
typename Cell_Type,
typename Data_Type>
82 return Array->get_cell(
i,
j,
false) ==
static_cast<Cell_Type
>(val);
85 template<
typename Cell_Type,
typename Data_Type>
87 return !(this->operator==(val));
90 template<
typename Cell_Type,
typename Data_Type>
92 return Array->get_cell(
i,
j,
false) <
static_cast<Cell_Type
>(val);
95 template<
typename Cell_Type,
typename Data_Type>
97 return Array->get_cell(
i,
j,
false) >
static_cast<Cell_Type
>(val);
100 template<
typename Cell_Type,
typename Data_Type>
102 return Array->get_cell(
i,
j,
false) <=
static_cast<Cell_Type
>(val);
105 template<
typename Cell_Type,
typename Data_Type>
107 return Array->get_cell(
i,
j,
false) >=
static_cast<Cell_Type
>(val);
111 #undef BROW_TEMPLATE_ARGS
#define BROW_TEMPLATE(a, b)
bool operator==(const Cell_Type &val) const
bool operator>(const Cell_Type &val) const
bool operator<=(const Cell_Type &val) const
bool operator<(const Cell_Type &val) const
bool operator!=(const Cell_Type &val) const
bool operator>=(const Cell_Type &val) const
bool operator==(const Cell_Type &val) const