"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/glue_mvnrnd_meat.hpp" between
armadillo-10.8.2.tar.xz and armadillo-11.0.0.tar.xz

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

glue_mvnrnd_meat.hpp  (armadillo-10.8.2.tar.xz):glue_mvnrnd_meat.hpp  (armadillo-11.0.0.tar.xz)
skipping to change at line 81 skipping to change at line 81
arma_debug_check( (UM.M.is_colvec() == false) && (UM.M.is_empty() == false), "mvnrnd(): given mean must be a column vector" ); arma_debug_check( (UM.M.is_colvec() == false) && (UM.M.is_empty() == false), "mvnrnd(): given mean must be a column vector" );
arma_debug_check( (UC.M.is_square() == false), "mvnrnd(): given covariance ma trix must be square sized" ); arma_debug_check( (UC.M.is_square() == false), "mvnrnd(): given covariance ma trix must be square sized" );
arma_debug_check( (UM.M.n_rows != UC.M.n_rows), "mvnrnd(): number of rows in g iven mean vector and covariance matrix must match" ); arma_debug_check( (UM.M.n_rows != UC.M.n_rows), "mvnrnd(): number of rows in g iven mean vector and covariance matrix must match" );
if( UM.M.is_empty() || UC.M.is_empty() ) if( UM.M.is_empty() || UC.M.is_empty() )
{ {
out.set_size(0,N); out.set_size(0,N);
return true; return true;
} }
// if(auxlib::rudimentary_sym_check(UC.M) == false)
// {
// arma_debug_warn_level(1, "mvnrnd(): given matrix is not symmetric");
// return false;
// }
if((arma_config::debug) && (auxlib::rudimentary_sym_check(UC.M) == false)) if((arma_config::debug) && (auxlib::rudimentary_sym_check(UC.M) == false))
{ {
arma_debug_warn_level(1, "mvnrnd(): given matrix is not symmetric"); arma_debug_warn_level(1, "mvnrnd(): given matrix is not symmetric");
} }
bool status = false; bool status = false;
if(UM.is_alias(out) || UC.is_alias(out)) if(UM.is_alias(out) || UC.is_alias(out))
{ {
Mat<eT> tmp; Mat<eT> tmp;
 End of changes. 1 change blocks. 
6 lines changed or deleted 0 lines changed or added

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