"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/fn_qr.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_qr.hpp  (armadillo-10.2.0.tar.xz):fn_qr.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 34 skipping to change at line 34
( (
Mat<typename T1::elem_type>& Q, Mat<typename T1::elem_type>& Q,
Mat<typename T1::elem_type>& R, Mat<typename T1::elem_type>& R,
const Base<typename T1::elem_type,T1>& X, const Base<typename T1::elem_type,T1>& X,
const typename arma_blas_type_only<typename T1::elem_type>::result* junk = nul lptr const typename arma_blas_type_only<typename T1::elem_type>::result* junk = nul lptr
) )
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_ignore(junk); arma_ignore(junk);
arma_debug_check( (&Q == &R), "qr(): Q and R are the same object"); arma_debug_check( (&Q == &R), "qr(): Q and R are the same object" );
const bool status = auxlib::qr(Q, R, X); const bool status = auxlib::qr(Q, R, X);
if(status == false) if(status == false)
{ {
Q.soft_reset(); Q.soft_reset();
R.soft_reset(); R.soft_reset();
arma_debug_warn("qr(): decomposition failed"); arma_debug_warn("qr(): decomposition failed");
} }
skipping to change at line 63 skipping to change at line 63
( (
Mat<typename T1::elem_type>& Q, Mat<typename T1::elem_type>& Q,
Mat<typename T1::elem_type>& R, Mat<typename T1::elem_type>& R,
const Base<typename T1::elem_type,T1>& X, const Base<typename T1::elem_type,T1>& X,
const typename arma_blas_type_only<typename T1::elem_type>::result* junk = nul lptr const typename arma_blas_type_only<typename T1::elem_type>::result* junk = nul lptr
) )
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_ignore(junk); arma_ignore(junk);
arma_debug_check( (&Q == &R), "qr_econ(): Q and R are the same object"); arma_debug_check( (&Q == &R), "qr_econ(): Q and R are the same object" );
const bool status = auxlib::qr_econ(Q, R, X); const bool status = auxlib::qr_econ(Q, R, X);
if(status == false) if(status == false)
{ {
Q.soft_reset(); Q.soft_reset();
R.soft_reset(); R.soft_reset();
arma_debug_warn("qr_econ(): decomposition failed"); arma_debug_warn("qr_econ(): decomposition failed");
} }
skipping to change at line 92 skipping to change at line 92
( (
Mat<typename T1::elem_type>& Q, Mat<typename T1::elem_type>& Q,
Mat<typename T1::elem_type>& R, Mat<typename T1::elem_type>& R,
Mat<uword>& P, Mat<uword>& P,
const Base<typename T1::elem_type,T1>& X, const Base<typename T1::elem_type,T1>& X,
const char* P_mode = "matrix" const char* P_mode = "matrix"
) )
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (&Q == &R), "qr(): Q and R are the same object"); arma_debug_check( (&Q == &R), "qr(): Q and R are the same object" );
const char sig = (P_mode != nullptr) ? P_mode[0] : char(0); const char sig = (P_mode != nullptr) ? P_mode[0] : char(0);
arma_debug_check( ((sig != 'm') && (sig != 'v')), "qr(): argument 'P_mode' mus t be \"vector\" or \"matrix\"" ); arma_debug_check( ((sig != 'm') && (sig != 'v')), "qr(): argument 'P_mode' mus t be \"vector\" or \"matrix\"" );
bool status = false; bool status = false;
if(sig == 'v') if(sig == 'v')
{ {
status = auxlib::qr_pivot(Q, R, P, X); status = auxlib::qr_pivot(Q, R, P, X);
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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