add debug info

This commit is contained in:
conrad
2025-05-24 15:40:07 +10:00
parent c0bf9d5262
commit 47d576fc76
5 changed files with 26 additions and 3 deletions
+4
View File
@@ -784,6 +784,10 @@ Cube<eT>::operator=(const Cube<eT>& x)
arrayops::copy( memptr(), x.mem, n_elem );
}
else
{
arma_debug_print("Cube::operator=(): copy omitted");
}
return *this;
}
+6 -1
View File
@@ -106,7 +106,12 @@ MapMat<eT>::operator=(const MapMat<eT>& x)
{
arma_debug_sigprint();
if(this == &x) { return; }
if(this == &x)
{
arma_debug_print("MapMat::operator=(): copy omitted");
return;
}
access::rw(n_rows) = x.n_rows;
access::rw(n_cols) = x.n_cols;
+4
View File
@@ -915,6 +915,10 @@ Mat<eT>::operator=(const Mat<eT>& in_mat)
arrayops::copy( memptr(), in_mat.mem, in_mat.n_elem );
}
else
{
arma_debug_print("Mat::operator=(): copy omitted");
}
return *this;
}
+6 -1
View File
@@ -5124,7 +5124,12 @@ SpMat<eT>::init(const SpMat<eT>& x)
{
arma_debug_sigprint();
if(this == &x) { return; }
if(this == &x)
{
arma_debug_print("SpMat::init(): copy omitted");
return;
}
bool init_done = false;
+6 -1
View File
@@ -2120,7 +2120,12 @@ field<oT>::init(const field<oT>& x)
{
arma_debug_sigprint();
if(this == &x) { return; }
if(this == &x)
{
arma_debug_print("field::init(): copy omitted");
return;
}
field& t = (*this);