[mlpack-svn] r16826 - 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 10:58:01 EDT 2014
Author: rcurtin
Date: Wed Jul 16 10:58:00 2014
New Revision: 16826
Log:
clang tells me that the size parameter isn't used, and it wasn't lying, either.
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 10:58:00 2014
@@ -40,13 +40,12 @@
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) : size(size), parent(size), rank(size)
+ UnionFind(const size_t size) : parent(size), rank(size)
{
for (size_t i = 0; i < size; ++i)
{
More information about the mlpack-svn
mailing list