[mlpack] Regarding move constructor of dtree.

Piyush Jaiswal piyush.jaiswal at st.niituniversity.in
Fri Jan 20 01:37:51 EST 2017


Oh ok, this makes it much clearer now.

On Fri, Jan 20, 2017 at 7:00 AM, Sudhanshu Ranjan <sranjan.sud at gmail.com>
wrote:

> If I am not wrong, most probably armadillo's implementation of move
> constructor takes care of that.
> It convert it into a matrix of size 0*1.
> You can have a look at :
>   https://github.com/conradsnicta/armadillo-code/blob/devel/
> include/armadillo_bits/Col_meat.hpp#L271
>   and at http://pastebin.com/xTJXa3cC.
>
> Sudhanshu Ranjan
>
>
> On Thu, Jan 19, 2017 at 10:30 PM, <mlpack-request at lists.mlpack.org> wrote:
>
>> Send mlpack mailing list submissions to
>>         mlpack at lists.mlpack.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
>> or, via email, send a message with subject or body 'help' to
>>         mlpack-request at lists.mlpack.org
>>
>> You can reach the person managing the list at
>>         mlpack-owner at lists.mlpack.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of mlpack digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Doubt regarding move constructor in det (Piyush Jaiswal)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Thu, 19 Jan 2017 22:14:35 +0530
>> From: Piyush Jaiswal <piyush.jaiswal at st.niituniversity.in>
>> To: mlpack at lists.mlpack.org
>> Subject: [mlpack] Doubt regarding move constructor in det
>> Message-ID:
>>         <CALPMqJ+Op9MXnSfM38b5j3CKLUEp4CeCcWbrtYgm2QsH-p8E_Q at mail.gm
>> ail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>> When calling the move constructor while moving one DTree to another DTree
>> in det,
>> *std::move* is used to move the value of the member variables - maxVals
>> and
>> minVals to the other DTree and then not initialized later on in the
>> original DTree. Wouldn't this leave these values in an unspecified state
>> when accessing them with the original DTree?
>>
>> Thanks,
>> Piyush
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20170
>> 119/77eb62e5/attachment-0001.html>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> mlpack mailing list
>> mlpack at lists.mlpack.org
>> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
>>
>> ------------------------------
>>
>> End of mlpack Digest, Vol 35, Issue 4
>> *************************************
>>
>
>
> _______________________________________________
> mlpack mailing list
> mlpack at lists.mlpack.org
> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20170120/5fa9fa20/attachment.html>


More information about the mlpack mailing list