From 9b60f9ddc07e2abc21fab5cc9f7c5fe1ffe379a5 Mon Sep 17 00:00:00 2001 From: jiri Date: Fri, 14 Mar 2008 15:48:20 +0000 Subject: [PATCH] *** empty log message *** --- mat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mat.h b/mat.h index b750ba2..13b3fcc 100644 --- a/mat.h +++ b/mat.h @@ -57,7 +57,7 @@ public: const bool operator==(const NRMat &rhs) const {return !(*this != rhs);}; inline int getcount() const {return count?*count:0;} NRMat & operator=(const NRMat &rhs); //assignment - void clear() {LA_traits::clear((*this)[0],nn*mm);}; //zero out + void clear() {if(nn&&mm) LA_traits::clear((*this)[0],nn*mm);}; //zero out void randomize(const T &x); //fill with random numbers NRMat & operator=(const T &a); //assign a to diagonal NRMat & operator|=(const NRMat &rhs); //assignment to a new copy