@@ -2067,7 +2067,7 @@ Mat<eT>::operator-=(const subview<eT>& X)
20672067
20682068
20692069
2070- // ! in-place matrix mutiplication (using a submatrix on the right-hand-side)
2070+ // ! in-place matrix multiplication (using a submatrix on the right-hand-side)
20712071template <typename eT>
20722072inline
20732073Mat<eT>&
@@ -2082,7 +2082,7 @@ Mat<eT>::operator*=(const subview<eT>& X)
20822082
20832083
20842084
2085- // ! in-place element-wise matrix mutiplication (using a submatrix on the right-hand-side)
2085+ // ! in-place element-wise matrix multiplication (using a submatrix on the right-hand-side)
20862086template <typename eT>
20872087inline
20882088Mat<eT>&
@@ -2257,7 +2257,7 @@ Mat<eT>::operator-=(const subview_cube<eT>& X)
22572257
22582258
22592259
2260- // ! in-place matrix mutiplication (using a single-slice subcube on the right-hand-side)
2260+ // ! in-place matrix multiplication (using a single-slice subcube on the right-hand-side)
22612261template <typename eT>
22622262inline
22632263Mat<eT>&
@@ -2274,7 +2274,7 @@ Mat<eT>::operator*=(const subview_cube<eT>& X)
22742274
22752275
22762276
2277- // ! in-place element-wise matrix mutiplication (using a single-slice subcube on the right-hand-side)
2277+ // ! in-place element-wise matrix multiplication (using a single-slice subcube on the right-hand-side)
22782278template <typename eT>
22792279inline
22802280Mat<eT>&
@@ -2383,7 +2383,7 @@ Mat<eT>::operator-=(const diagview<eT>& X)
23832383
23842384
23852385
2386- // ! in-place matrix mutiplication (using a diagview on the right-hand-side)
2386+ // ! in-place matrix multiplication (using a diagview on the right-hand-side)
23872387template <typename eT>
23882388inline
23892389Mat<eT>&
@@ -2398,7 +2398,7 @@ Mat<eT>::operator*=(const diagview<eT>& X)
23982398
23992399
24002400
2401- // ! in-place element-wise matrix mutiplication (using a diagview on the right-hand-side)
2401+ // ! in-place element-wise matrix multiplication (using a diagview on the right-hand-side)
24022402template <typename eT>
24032403inline
24042404Mat<eT>&
@@ -2862,6 +2862,8 @@ Mat<eT>::operator=(const SpSubview<eT>& X)
28622862
28632863 if (X.n_rows == X.m .n_rows )
28642864 {
2865+ arma_debug_print (" access via arrays" );
2866+
28652867 X.m .sync ();
28662868
28672869 const uword sv_col_start = X.aux_col1 ;
@@ -2889,6 +2891,8 @@ Mat<eT>::operator=(const SpSubview<eT>& X)
28892891 }
28902892 else
28912893 {
2894+ arma_debug_print (" access via iterators" );
2895+
28922896 typename SpSubview<eT>::const_iterator it = X.begin ();
28932897 typename SpSubview<eT>::const_iterator it_end = X.end ();
28942898
@@ -2913,6 +2917,8 @@ Mat<eT>::operator+=(const SpSubview<eT>& X)
29132917
29142918 if (X.n_rows == X.m .n_rows )
29152919 {
2920+ arma_debug_print (" access via arrays" );
2921+
29162922 X.m .sync ();
29172923
29182924 const uword sv_col_start = X.aux_col1 ;
@@ -2940,6 +2946,8 @@ Mat<eT>::operator+=(const SpSubview<eT>& X)
29402946 }
29412947 else
29422948 {
2949+ arma_debug_print (" access via iterators" );
2950+
29432951 typename SpSubview<eT>::const_iterator it = X.begin ();
29442952 typename SpSubview<eT>::const_iterator it_end = X.end ();
29452953
@@ -2964,6 +2972,8 @@ Mat<eT>::operator-=(const SpSubview<eT>& X)
29642972
29652973 if (X.n_rows == X.m .n_rows )
29662974 {
2975+ arma_debug_print (" access via arrays" );
2976+
29672977 X.m .sync ();
29682978
29692979 const uword sv_col_start = X.aux_col1 ;
@@ -2991,6 +3001,8 @@ Mat<eT>::operator-=(const SpSubview<eT>& X)
29913001 }
29923002 else
29933003 {
3004+ arma_debug_print (" access via iterators" );
3005+
29943006 typename SpSubview<eT>::const_iterator it = X.begin ();
29953007 typename SpSubview<eT>::const_iterator it_end = X.end ();
29963008
@@ -6674,7 +6686,7 @@ Mat<eT>::is_colvec() const
66746686
66756687
66766688
6677- // ! returns true if the object has the same number of non-zero rows and columnns
6689+ // ! returns true if the object has the same number of non-zero rows and columns
66786690template <typename eT>
66796691arma_inline
66806692bool
0 commit comments