Skip to content

Clamping changes to avoid numerical instability#7

Open
JamesPearman230 wants to merge 1 commit into
thoglu:mainfrom
JamesPearman230:stabilised_spherical_embedding
Open

Clamping changes to avoid numerical instability#7
JamesPearman230 wants to merge 1 commit into
thoglu:mainfrom
JamesPearman230:stabilised_spherical_embedding

Conversation

@JamesPearman230
Copy link
Copy Markdown

Added small changes to eucl_to_spherical_embedding to guard against near-zero norms and floating point drift outside the domain of the acos function. Sometimes this previously lead to nan outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants