]> git.donarmstrong.com Git - mothur.git/blobdiff - sparsematrix.hpp
fixes while testing 1.33.0
[mothur.git] / sparsematrix.hpp
index 8eeda7ff2f9899748bde34f92fac5a25dcfd3964..c8a11d70ddfe1fefa640e0e3412cc6f27ba0e579 100644 (file)
@@ -2,6 +2,7 @@
 #define SPARSEMATRIX_H
 
 #include "mothur.h"
+#include "mothurout.h"
 
 
 class ListVector;
@@ -26,6 +27,7 @@ class SparseMatrix {
        
 public:
        SparseMatrix();
+       ~SparseMatrix(){  while(!mins.empty() && mins.back() == NULL){  mins.pop_back();        }  }
        int getNNodes();
        void print();                                   //Print the contents of the matrix
        void print(ListVector*);                //Print the contents of the matrix
@@ -47,6 +49,7 @@ private:
        vector<PCell*> mins;
        float smallDist;
        int minsIndex;
+       MothurOut* m;
 };
 
 /***********************************************************************/