Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Fix state-weighting #2

Open
gramian opened this issue May 3, 2020 · 0 comments
Open

Fix state-weighting #2

gramian opened this issue May 3, 2020 · 0 comments
Assignees

Comments

@gramian
Copy link
Owner

gramian commented May 3, 2020

The state weighting closure (emgr.m, line 180) should be:

            wei = @(m) 1.0 ./ max(sqrt(eps),vecnorm(m,2,1));

similarly emgr.py, line 212 should be:

            return 1.0 / np.maximum(math.sqrt(np.spacing(1)),np.linalg.norm(m, 2, axis=0))

This will be fixed in version 5.9

@gramian gramian self-assigned this May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant