Skip to content

Commit

Permalink
BUG: in autoscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Aug 9, 2024
1 parent 4291af0 commit e78d73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/multiscaleSVDxpts.R
Original file line number Diff line number Diff line change
Expand Up @@ -3504,7 +3504,7 @@ simlr <- function(
)
}
myorthEnergy = invariant_orthogonality_defect( myenergysearchv )
if ( last_energy > 0 )
if ( last_energy > .Machine$double.eps & myorthEnergy > .Machine$double.eps)
myorthEnergy = 0.5 * myorthEnergy*(0.5 * last_energy/myorthEnergy)
if (ccaEnergy) {
# ( v'*X'*Y )/( norm2(X*v ) * norm2( u ) )
Expand Down

0 comments on commit e78d73a

Please sign in to comment.