Skip to content

Throw exceptions for incorrect vector shapes

I noticed while working on !59 (merged) that this line didn't throw an exception:

vec x = randu<rowvec>(10);

That's kind of an issue, so, now it throws an exception and I added tests to make sure those exceptions are properly thrown. The behavior should match Armadillo's.

Merge request reports