Skip to content

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Nov 27, 2022

This PR

  • adds support for complex number subtraction. Complex number subtraction is well-defined, where (a + bj) - (c + dj) = (a+bj) + (-(c+dj)) = (a+bj)+(-c-dj) = (a-c) + (c-d)j.
  • Specifies that special cases are defined according to complex number addition.
  • updates the input and output array data types to be any numeric data type, not just real-valued data types.
  • this PR depends on gh-525.

@kgryte kgryte added API change Changes to existing functions or objects in the API. topic: Complex Data Types Complex number data types. labels Nov 27, 2022
@kgryte kgryte added this to the v2022 milestone Nov 27, 2022
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice, LGTM

@rgommers rgommers merged commit 58580d5 into main Dec 13, 2022
@rgommers rgommers deleted the cmplx-subtract branch December 13, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Changes to existing functions or objects in the API. topic: Complex Data Types Complex number data types.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants