[mlpack-svn] r16827 - mlpack/tags/mlpack-1.0.8/src/mlpack/methods/emst

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Jul 16 11:01:09 EDT 2014


Author: rcurtin
Date: Wed Jul 16 11:01:09 2014
New Revision: 16827

Log:
Don't make changes in a tag!  Obviously I have not had enough caffeine this
morning.


Modified:
   mlpack/tags/mlpack-1.0.8/src/mlpack/methods/emst/union_find.hpp

Modified: mlpack/tags/mlpack-1.0.8/src/mlpack/methods/emst/union_find.hpp
==============================================================================
--- mlpack/tags/mlpack-1.0.8/src/mlpack/methods/emst/union_find.hpp	(original)
+++ mlpack/tags/mlpack-1.0.8/src/mlpack/methods/emst/union_find.hpp	Wed Jul 16 11:01:09 2014
@@ -40,12 +40,13 @@
 class UnionFind
 {
  private:
+  size_t size;
   arma::Col<size_t> parent;
   arma::ivec rank;
 
  public:
   //! Construct the object with the given size.
-  UnionFind(const size_t size) : parent(size), rank(size)
+  UnionFind(const size_t size) : size(size), parent(size), rank(size)
   {
     for (size_t i = 0; i < size; ++i)
     {



More information about the mlpack-svn mailing list