Skip to content

Conversation

@sethaxen
Copy link
Member

@sethaxen sethaxen commented Mar 5, 2022

This PR implements the following methods:

  • complex(::Dual, ::Real) -> Dual{<:Complex}
  • complex(::Real, ::Dual) -> Dual{<:Complex}
  • complex(::Dual, ::Dual) -> Dual{<:Complex}
  • complex(::Type{Dual{T}})

This allows Dual to be used for automatically differentiating not just the complex functions for which rules are defined here but also the construction of those complex numbers.

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2022

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@sethaxen sethaxen requested a review from dlfivefifty March 5, 2022 11:03
@dlfivefifty dlfivefifty merged commit 1036d45 into master Mar 6, 2022
@dlfivefifty
Copy link
Collaborator

Looks fine

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.

4 participants