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

linalg: hermitian #896

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

linalg: hermitian #896

wants to merge 4 commits into from

Conversation

perazz
Copy link
Contributor

@perazz perazz commented Nov 22, 2024

Address #883: compute the Hermitian version of a rank-2 matrix.
I agree that having a hermitian helper function is inline with stdlib already offering several others, including is_hermitian.

Fortran uses verbs (transpose), so there is no direct equivalent. I believe another possible name for this function may be just hermite(A), but probably hermitian is more in sync with is_hermitian.

Proposed implementation

  • A_h = hermitian(A)

Key facts

  • For complex matrices, the function returns the conjugate transpose (conjg(transpose(a))).
  • For real or integer matrices, the function returns the transpose (transpose(a)).

Prior art

  • SciPy: A.H (H operator)
  • NumPy: A.H (H operator)

cc: @jvdp1 @jalvesz @loiseaujc

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.

1 participant