[Genabel-commits] r858 - pkg/ProbABEL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Mar 19 00:05:26 CET 2012
Author: lckarssen
Date: 2012-03-19 00:05:26 +0100 (Mon, 19 Mar 2012)
New Revision: 858
Modified:
pkg/ProbABEL/src/mematrix.h
Log:
Minor code layout changes in ProbABEL's mematrix.h
Modified: pkg/ProbABEL/src/mematrix.h
===================================================================
--- pkg/ProbABEL/src/mematrix.h 2012-03-18 19:09:33 UTC (rev 857)
+++ pkg/ProbABEL/src/mematrix.h 2012-03-18 23:05:26 UTC (rev 858)
@@ -11,10 +11,19 @@
int nelements;
DT * data;
- mematrix() {nrow=ncol=nelements=0;data=NULL;}
+ mematrix()
+ {
+ nrow=ncol=nelements=0;
+ data=NULL;
+ }
+
mematrix(int nr, int nc);
mematrix(const mematrix &M);
- ~mematrix() {if (nelements>0) delete [] data;}
+ ~mematrix()
+ {
+ if (nelements>0)
+ delete [] data;
+ }
mematrix & operator=(const mematrix &M);
DT & operator[](int i);
More information about the Genabel-commits
mailing list