diff --git a/include/armadillo_bits/Cube_meat.hpp b/include/armadillo_bits/Cube_meat.hpp index 591c6202..aa869bb4 100644 --- a/include/armadillo_bits/Cube_meat.hpp +++ b/include/armadillo_bits/Cube_meat.hpp @@ -3562,7 +3562,7 @@ Cube::operator() (const uword in_row, const uword in_col, const uword in_sli //! element accessor; no bounds check template arma_inline - eT& + eT& Cube::operator[] (const uword in_row, const uword in_col, const uword in_slice) { return access::rw( mem[in_slice*n_elem_slice + in_col*n_rows + in_row] ); @@ -3573,7 +3573,7 @@ Cube::operator() (const uword in_row, const uword in_col, const uword in_sli //! element accessor; no bounds check template arma_inline - const eT& + const eT& Cube::operator[] (const uword in_row, const uword in_col, const uword in_slice) const { return mem[in_slice*n_elem_slice + in_col*n_rows + in_row]; diff --git a/include/armadillo_bits/Mat_meat.hpp b/include/armadillo_bits/Mat_meat.hpp index b738fd27..0f785d5c 100644 --- a/include/armadillo_bits/Mat_meat.hpp +++ b/include/armadillo_bits/Mat_meat.hpp @@ -6500,7 +6500,7 @@ Mat::at(const uword in_row, const uword in_col) const //! element accessor; no bounds check template arma_inline - eT& + eT& Mat::operator[] (const uword in_row, const uword in_col) { return access::rw( mem[in_row + in_col*n_rows] ); @@ -6511,7 +6511,7 @@ Mat::at(const uword in_row, const uword in_col) const //! element accessor; no bounds check template arma_inline - const eT& + const eT& Mat::operator[] (const uword in_row, const uword in_col) const { return mem[in_row + in_col*n_rows]; diff --git a/include/armadillo_bits/SpMat_meat.hpp b/include/armadillo_bits/SpMat_meat.hpp index a09fa3f3..eb0bbce8 100644 --- a/include/armadillo_bits/SpMat_meat.hpp +++ b/include/armadillo_bits/SpMat_meat.hpp @@ -3374,7 +3374,7 @@ SpMat::operator()(const uword i) const template arma_inline - SpMat_MapMat_val + SpMat_MapMat_val SpMat::operator[] (const uword in_row, const uword in_col) { return SpMat_MapMat_val((*this), cache, in_row, in_col); @@ -3384,7 +3384,7 @@ SpMat::operator()(const uword i) const template arma_inline - eT + eT SpMat::operator[] (const uword in_row, const uword in_col) const { return get_value(in_row, in_col); diff --git a/include/armadillo_bits/field_meat.hpp b/include/armadillo_bits/field_meat.hpp index 5d7d380e..1ae7cce1 100644 --- a/include/armadillo_bits/field_meat.hpp +++ b/include/armadillo_bits/field_meat.hpp @@ -614,7 +614,7 @@ field::operator() (const uword in_row, const uword in_col, const uword in_sl //! element accessor; no bounds check template arma_inline - oT& + oT& field::operator[] (const uword in_row, const uword in_col) { return (*mem[in_row + in_col*n_rows]); @@ -625,7 +625,7 @@ field::operator() (const uword in_row, const uword in_col, const uword in_sl //! element accessor; no bounds check template arma_inline - const oT& + const oT& field::operator[] (const uword in_row, const uword in_col) const { return (*mem[in_row + in_col*n_rows]);