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

Add a hermitian function to stdlib_linalg #883

Closed
loiseaujc opened this issue Nov 4, 2024 · 0 comments
Closed

Add a hermitian function to stdlib_linalg #883

loiseaujc opened this issue Nov 4, 2024 · 0 comments
Labels
idea Proposition of an idea and opening an issue to discuss it

Comments

@loiseaujc
Copy link

Motivation

I've been working quite a lot with complex arrays recently and ended-up having to write conj(transpose(A)) quite often. Would encapsulating these into a hermitian function be of use for stdlib_linalg? It is more sugar-coating than anything but could still be useful to reduce a bit code bloat.

(ping @perazz, @jvdp1, @jalvesz)

Prior Art

  • In Julia, if $A \in \mathbb{C}^{m \times n}$, the syntax A' is equivalent to $A^H$.
  • In Numpy, if A is an np.matrix object, then A.H returns the hermitian as well.
  • Currently in Fortran (as far as I know), the Hermitian needs to be computed using conj(transpose(A)) or transpose(conj(A)).

Additional Information

No response

@loiseaujc loiseaujc added the idea Proposition of an idea and opening an issue to discuss it label Nov 4, 2024
@perazz perazz closed this as completed Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Proposition of an idea and opening an issue to discuss it
Projects
None yet
Development

No branches or pull requests

2 participants