This commit is contained in:
conrad
2022-09-07 11:16:53 +10:00
parent 47219263d8
commit cd4e207d99
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ Col<eT>::operator=(Col<eT>&& X)
if(this == &X) { return *this; }
if( (Mat<eT>::mem_state <= 1) && (X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2))
if( (Mat<eT>::mem_state <= 1) && ((X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2)) )
{
(*this).reset();
+1 -1
View File
@@ -794,7 +794,7 @@ Mat<eT>::operator=(Mat<eT>&& X)
if(this == &X) { return *this; }
if( (mem_state <= 1) && (X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2))
if( (mem_state <= 1) && ((X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2)) )
{
(*this).reset();
+1 -1
View File
@@ -423,7 +423,7 @@ Row<eT>::operator=(Row<eT>&& X)
if(this == &X) { return *this; }
if( (Mat<eT>::mem_state <= 1) && (X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2))
if( (Mat<eT>::mem_state <= 1) && ((X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2)) )
{
(*this).reset();