Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform: det and normalized. #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

switzel
Copy link

@switzel switzel commented Sep 1, 2023

Adds methods det() and normalized() to Transform. These are mostly for convenience. For instance it is hard to tell whether to two Transforms are the same transformation since they may differ by a complex scalar. Note that the normalized version is not technically normalized as two normalized Transforms describing the same transformation may differ by sign (but only by sign).

@@ -88,6 +88,14 @@ def conjugate(self):
a, b, c, d = self.abcd
return Transform(a.conjugate(), b.conjugate(),
c.conjugate(), d.conjugate(), conj=not self.conj)
def det(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two could be properties

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