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 coercion complex -> CC #17166
Comments
Branch: u/jdemeyer/ticket/17166 |
Commit: |
New commits:
|
comment:3
What did the old doctest
do with the changes in question if you didn't change the ring? (I'm just wondering about breaking existing third-party code.) |
comment:4
Replying to @kcrisman:
Return a matrix over |
comment:5
But your question makes sense: why should it have changed? |
comment:6
Replying to @jdemeyer:
The change makes sense because the parent of the entry |
comment:7
IMHO the coercion should be complex -> CDF -> CC and not complex -> CC -> CDF. Pretty much the only difference is that the matrix would default to CDF, but since matrices over CDF are much more useful than matrices over CC this is probably what the user prefers. |
comment:8
Replying to @vbraun:
Coercion goes both ways in this case (CDF -> CC and CC -> CDF), so the result is the same really. Interestingly, this has the following consequence:
Let me know what you think, if you think the coercion should be added to |
comment:9
I also noticed that we have coercions both way CDF <-> CC. This sounds a bit wonky, IMHO it shoud be What I originally meant was just that Python |
comment:10
Replying to @vbraun:
Having a coercion
Whatever the outcome of this ticket is, the behaviour of |
comment:11
Replying to @vbraun:
I would prefer
|
comment:12
Yes, it should be |
comment:13
Can this ticket please be reviewed as just making |
Reviewer: Travis Scrimshaw |
comment:14
I'm okay with pushing the issues with the other coercions to another ticket, and the current branch LGTM. So I'm setting a positive review. |
Changed branch from u/jdemeyer/ticket/17166 to |
This works fine:
However, it is a conversion while it should be a coercion.
This is inconsistent with
CC: @robertwb
Component: coercion
Author: Jeroen Demeyer
Branch/Commit:
d00b706
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/17166
The text was updated successfully, but these errors were encountered: