"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/fn_randperm.hpp" between
armadillo-10.2.0.tar.xz and armadillo-10.2.1.tar.xz

About: Armadillo is a C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use.

fn_randperm.hpp  (armadillo-10.2.0.tar.xz):fn_randperm.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 112 skipping to change at line 112
} }
template<typename obj_type> template<typename obj_type>
arma_warn_unused arma_warn_unused
inline inline
typename enable_if2< is_Mat<obj_type>::value, obj_type >::result typename enable_if2< is_Mat<obj_type>::value, obj_type >::result
randperm(const uword N, const uword M) randperm(const uword N, const uword M)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (M > N), "randperm(): 'M' must be less than or equal to 'N'" ); arma_debug_check( (M > N), "randperm(): 'M' must be less than or equal to 'N'" );
obj_type x; obj_type x;
if( (N > 0) && (M > 0) ) { internal_randperm_helper(x, N, M); } if( (N > 0) && (M > 0) ) { internal_randperm_helper(x, N, M); }
return x; return x;
} }
arma_warn_unused arma_warn_unused
inline inline
uvec uvec
randperm(const uword N, const uword M) randperm(const uword N, const uword M)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (M > N), "randperm(): 'M' must be less than or equal to 'N'" ); arma_debug_check( (M > N), "randperm(): 'M' must be less than or equal to 'N'" );
uvec x; uvec x;
if( (N > 0) && (M > 0) ) { internal_randperm_helper(x, N, M); } if( (N > 0) && (M > 0) ) { internal_randperm_helper(x, N, M); }
return x; return x;
} }
//! @} //! @}
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)