-
Notifications
You must be signed in to change notification settings - Fork 13
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
Operator constructor instead of convert #399
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #399 +/- ##
==========================================
- Coverage 71.68% 62.29% -9.40%
==========================================
Files 80 80
Lines 8456 8514 +58
==========================================
- Hits 6062 5304 -758
- Misses 2394 3210 +816
... and 27 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
This is a somewhat large PR, but the idea is the same across files: define the constructor
Operator{T}(x::Operator)
and the constructor(::Type{T})(x:Operator) where {T<:Operator}
, whereT
andtypeof(x)
only differ in some type parameter.After this, something like this would work:
The motivation behind this is to get something like the following to work: