[mlpack] arma::colvec behaving as arma::mat
Lakshya Agrawal
zeeshan.lakshya at gmail.com
Thu Mar 2 12:08:37 EST 2017
Is this a specified behavior or I am doing something wrong.
It turns out that In the test files arma::colvec and arma::rowvec
are treated as arma::mat. So even arma::colvec is able to load matrices
rather than just column vector.
I have tried out something like this in "load_save_test.cpp"
arma::mat A(5,5, fill::randu);
arma::colvec coltest(A)
It should throw an std::logic_error while doing this.
But gives no error .In fact I also tried printing "coltest" and it gets
printed same as A.
I have tried Googling around on how to fix this error but nothing seems to
work.
Thank You !!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20170302/51a90dd0/attachment.html>
More information about the mlpack
mailing list