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

complex features #832

Merged
merged 2 commits into from
Sep 6, 2023
Merged

complex features #832

merged 2 commits into from
Sep 6, 2023

Conversation

joostvanzwieten
Copy link
Member

This PR adds support for

  • calling numpy.{real,imag,conjugate} with a Quantity and
  • linearizing a function with complex-valued arguments.

This patch adds support for calling `numpy.{real,imag,conjugate}` with a
`Quantity`.
This patch adds support for linearizing functions with complex-valued
arguments by instantiating `function.Argument`s with the correct dtype
in `function.linearize`.
@joostvanzwieten joostvanzwieten merged commit 288080e into master Sep 6, 2023
@joostvanzwieten joostvanzwieten deleted the complex branch September 6, 2023 10:27
joostvanzwieten added a commit that referenced this pull request Sep 7, 2023
This PR adds support for

* calling `numpy.{real,imag,conjugate}` with a `Quantity` and
* linearizing a function with complex-valued arguments.

Backport of #832
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