distinguish between default and user supplied tolerance

This commit is contained in:
conrad
2026-04-07 11:33:04 +10:00
parent bf69c85cb8
commit fa63e6d717
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -685,7 +685,7 @@ gmm_diag<eT>::learn
arma_conform_check( (dist_mode_ok == false), "gmm_diag::learn(): dist_mode must be eucl_dist or maha_dist" );
arma_conform_check( (seed_mode_ok == false), "gmm_diag::learn(): unknown seed_mode" );
arma_conform_check( ((var_floor >= eT(0)) == false), "gmm_diag::learn(): variance floor must be >= 0" );
arma_conform_check( ((var_floor >= eT(0)) == false), "gmm_diag::learn(): variance floor must be > 0" );
const unwrap<T1> tmp_X(data.get_ref());
const Mat<eT>& X = tmp_X.M;
+1 -1
View File
@@ -724,7 +724,7 @@ gmm_full<eT>::learn
arma_conform_check( (dist_mode_ok == false), "gmm_full::learn(): dist_mode must be eucl_dist or maha_dist" );
arma_conform_check( (seed_mode_ok == false), "gmm_full::learn(): unknown seed_mode" );
arma_conform_check( ((var_floor >= eT(0)) == false), "gmm_full::learn(): variance floor must be >= 0" );
arma_conform_check( ((var_floor >= eT(0)) == false), "gmm_full::learn(): variance floor must be > 0" );
const unwrap<T1> tmp_X(data.get_ref());
const Mat<eT>& X = tmp_X.M;
+2 -2
View File
@@ -54,7 +54,7 @@ op_orth::apply_direct(Mat<typename T1::elem_type>& out, const Base<typename T1::
typedef typename T1::elem_type eT;
typedef typename T1::pod_type T;
arma_conform_check( ((tol >= T(0)) == false), "orth(): tolerance must be >= 0" );
arma_conform_check( ((tol >= T(0)) == false), "orth(): tolerance must be > 0" );
Mat<eT> U;
Col< T> s;
@@ -141,7 +141,7 @@ op_null::apply_direct(Mat<typename T1::elem_type>& out, const Base<typename T1::
typedef typename T1::elem_type eT;
typedef typename T1::pod_type T;
arma_conform_check( ((tol >= T(0)) == false), "null(): tolerance must be >= 0" );
arma_conform_check( ((tol >= T(0)) == false), "null(): tolerance must be > 0" );
Mat<eT> U;
Col< T> s;
+1 -1
View File
@@ -94,7 +94,7 @@ op_pinv::apply_direct(Mat<typename T1::elem_type>& out, const Base<typename T1::
typedef typename T1::elem_type eT;
typedef typename T1::pod_type T;
arma_conform_check( ((tol >= T(0)) == false), "pinv(): tolerance must be >= 0" );
arma_conform_check( ((tol >= T(0)) == false), "pinv(): tolerance must be > 0" );
// method_id = 0 -> default setting
// method_id = 1 -> use standard algorithm