decargroup / decargroup/pymlg

Division by zero in SO3.to_quat()

Open
#23 0 comments 0 reactions 1 assignee Claimed by @mitchellcohen3 View on GitHub
Dominant language
Python
Stars
47
Forks
7
PR merge metrics
No merged PRs in 30d

Description

When the SO(3) element, C, is given as
```
C = [
1, 0, 0,
0, -1, 0,
0, 0, -1
]
```
and use `SO3.to_quat(C)`, the division by zero error is raised in line 256 due to
```
eta = 0.5 * (np.trace(C) + 1) ** 0.5
```
being zero.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.