Skip to content

Commit

Permalink
faster convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
oguyon committed Feb 18, 2024
1 parent 325dd7e commit 544f772
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/milk-extra-src/linalgebra/basis_rotate_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,11 @@ errno_t compute_basis_rotate_match(
loopiterMax = 1000;

double alphap = 1.0;

double dangle = 1.0;
double danglemin = 0.0001;
double danglemin = 0.001;
double danglemfact = 0.97;

double posSideAmp = 10.0;

// temp storate for vects to be swapped
Expand Down Expand Up @@ -506,7 +509,7 @@ errno_t compute_basis_rotate_match(
printf(" [%5ld %5ld %5ld] %g\n", cntneg, cntmid, cntpos, dangle);
if( cntmid > 100.0*(cntpos+cntneg) )
{
dangle *= 0.98;
dangle *= danglemfact;
}


Expand Down

0 comments on commit 544f772

Please sign in to comment.