[mlpack-git] master,mlpack-1.0.x: The size parameter is unused outside the constructor; also, commit this change to trunk this time... (daac702)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:53:23 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit daac7025219675ee468c7ac683fe07f002afed45
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Jul 16 15:01:45 2014 +0000
The size parameter is unused outside the constructor; also, commit this change
to trunk this time...
>---------------------------------------------------------------
daac7025219675ee468c7ac683fe07f002afed45
src/mlpack/methods/emst/union_find.hpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mlpack/methods/emst/union_find.hpp b/src/mlpack/methods/emst/union_find.hpp
index b6fe128..e1d3a3c 100644
--- a/src/mlpack/methods/emst/union_find.hpp
+++ b/src/mlpack/methods/emst/union_find.hpp
@@ -25,13 +25,12 @@ namespace emst {
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-git
mailing list