diff --git a/nonclass.cc b/nonclass.cc index 47606bc..af5d666 100644 --- a/nonclass.cc +++ b/nonclass.cc @@ -782,7 +782,7 @@ double trace2(const NRMat &a, const NRMat &b, bool trb) { if (trb && (a.nrows() != b.nrows() || a.ncols() != b.ncols()) || !trb && (a.nrows() != b.ncols() || a.ncols() != b.nrows())) - laerror("incompatible Mats in diagofproduct()"); + laerror("incompatible Mats in trace2()"); if (trb) return cblas_ddot(a.nrows()*a.ncols(), a, 1, b, 1); double sum = 0.0; @@ -798,10 +798,11 @@ double trace2(const NRSMat &a, const NRSMat &b, { if (a.nrows() != b.nrows()) laerror("incompatible SMats in trace2()"); + //double r = 0; for (int i=0; i