[mlpack] [mlpack/mlpack] Added copy constructor, move constructor and copy assignment operator. (#826)
Ryan Curtin
notifications at github.com
Tue Dec 27 11:20:54 EST 2016
rcurtin commented on this pull request.
> +
+ //Set obj to default values
+ obj.start = 0;
+ obj.end = 0;
+ obj.splitDim = size_t(-1);
+ obj.splitValue = std::numeric_limits<ElemType>::max();
+ obj.logNegError = -DBL_MAX;
+ obj.subtreeLeavesLogNegError = -DBL_MAX;
+ obj.subtreeLeaves = 0;
+ obj.root = true;
+ obj.ratio = 1.0;
+ obj.logVolume = -DBL_MAX;
+ obj.bucketTag = -1;
+ obj.alphaUpper = 0.0;
+ obj.left = NULL;
+ obj.right = NULL;
You should be able to do this as an initialization list.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/826#pullrequestreview-14477794
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20161227/49440aed/attachment-0001.html>
More information about the mlpack
mailing list