RFC: add Hermitian transpose function

Open
#555 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by reading the linked NumPy issue and the existing array API standard materials to understand prior discussion of Hermitian transpose semantics. Done means reaching a settled specification decision for both the function and the proposed .H attribute, including the view and conjugate-complex dtype implications.

Written by the indexing model from the issue text.

Description

API extension Needs Discussion RFC topic: Complex Data Types

See for instance https://github.com/numpy/numpy/issues/13797. It might be useful to have a special function for a hermitian transpose, which would be equivalent to conjugate(matrix_transpose(x)).

The other suggestion is a .H operator on matrices. A complication here is that libraries that use views would not be able to make .H a view unless they add a special conjugate-complex dtype. See the discussion at https://github.com/numpy/numpy/issues/13797. (the .H attribute is really the bigger thing here, as it least to more readable code, but if it is added it probably makes sense to also add a corresponding function)

Dominant language
Python
Stars
281
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from data-apis/array-api

All issues in data-apis/array-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.