diff --git a/include/armadillo_bits/subview_meat.hpp b/include/armadillo_bits/subview_meat.hpp index 5c06571a..5238e248 100644 --- a/include/armadillo_bits/subview_meat.hpp +++ b/include/armadillo_bits/subview_meat.hpp @@ -80,25 +80,6 @@ subview::subview(subview&& in) -template -inline -void -subview::operator= (const eT val) - { - arma_extra_debug_sigprint(); - - if(n_elem != 1) - { - arma_debug_assert_same_size(n_rows, n_cols, 1, 1, "copy into submatrix"); - } - - Mat& X = const_cast< Mat& >(m); - - X.at(aux_row1, aux_col1) = val; - } - - - template template inline @@ -412,6 +393,25 @@ subview::inplace_op(const subview& x, const char* identifier) +template +inline +void +subview::operator= (const eT val) + { + arma_extra_debug_sigprint(); + + if(n_elem != 1) + { + arma_debug_assert_same_size(n_rows, n_cols, 1, 1, "copy into submatrix"); + } + + Mat& X = const_cast< Mat& >(m); + + X.at(aux_row1, aux_col1) = val; + } + + + template inline void