Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0ddeb2a1 authored by hhakim's avatar hhakim
Browse files

Stop on fatal error if PALM4MSA 2020 descent step is zero because of zero 2-norm of L or R factors.

parent 7a8253cc
Branches
Tags
No related merge requests found
......@@ -556,6 +556,12 @@ void Faust::update_fact(
std::cout << "S id:" << f_id << std::endl;
throw std::runtime_error("2-norm computation error: R or L 2-norm is NaN.");
}
if(nR == 0 || nL == 0)
{
pR[f_id]->save_mat_file("R.mat");
pL[f_id]->save_mat_file("L.mat");
throw std::runtime_error("2-norm computation error in computation of descent step inverse: R or L 2-norm is zero. R and L were saved in R.mat and L.mat files.");
}
if(is_verbose)
{
spectral_stop = std::chrono::high_resolution_clock::now();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment