X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sparsematrix.hpp;h=c8a11d70ddfe1fefa640e0e3412cc6f27ba0e579;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=8eeda7ff2f9899748bde34f92fac5a25dcfd3964;hpb=1b9d0a66e4737f31d16824fe93944880b9edc530;p=mothur.git diff --git a/sparsematrix.hpp b/sparsematrix.hpp index 8eeda7f..c8a11d7 100644 --- a/sparsematrix.hpp +++ b/sparsematrix.hpp @@ -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 mins; float smallDist; int minsIndex; + MothurOut* m; }; /***********************************************************************/