-
Notifications
You must be signed in to change notification settings - Fork 54
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 hermitian()
to matrix gallery
#1086
Add hermitian()
to matrix gallery
#1086
Conversation
@ClaudiaComito I couldn't figure out the split logic for this. Can you please review the PR? |
for more information, see https://pre-commit.ci
Thank you for the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @swaptr and apologies for the delay. I suggest to use ht.random.randn
instead of arange
, and that also allows specifying a split axis.
Thank you for the PR! |
1 similar comment
Thank you for the PR! |
Thank you for the PR! |
Thank you for the PR! |
084475c
into
helmholtz-analytics:1073-Add_Hermitian_to_matrix_gallery
* add test_hermitian() * Add `hermitian()` to matrix gallery (#1086) * hermitian: add function definition * implement hermitian * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Set default dtype to complex * Edit docs * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix reference to types --------- Co-authored-by: Claudia Comito <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix operand split for binary operation * add double precision tests * faster solution for non-positive definite hermitian * Update matrixgallery.py Updated docs for `hermitian` Added scaling factor for the positive definite matrices Added distinction of real and complex data types * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update test_matrixgallery.py extended tests: * added tests for the positive definite case and real data-types * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * reformatting with precommit * formatted the docstring as raw (r""" ...) in order to let flake8 be fine with latex formulas... * corrected a typo in the tests... --------- Co-authored-by: swaptr <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Fabian Hoppe <[email protected]> Co-authored-by: Hoppe <[email protected]>
Description
Added
hermitian()
to generate random hermitian matrices of sizen
.Issue/s resolved: #1073
Changes proposed:
hermitian()
toutils.data.matrixgallery
.Type of change
Memory requirements
Performance
Due Diligence
Does this change modify the behaviour of other functions? If so, which?
no