From 1855f4c2f14eb745f0a724e67cc283505749f7bf Mon Sep 17 00:00:00 2001 From: jiri Date: Sun, 22 Oct 2006 08:39:24 +0000 Subject: [PATCH] *** empty log message *** --- nonclass.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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