-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
TensorField.__call__ alters zero #30239
Comments
Commit: |
New commits:
|
Author: Michael Jung |
comment:4
Good catch! However the proposed fix
is not acceptable, because the comparison with |
Changed author from Michael Jung to none |
comment:5
Sorry the author name was deleted by mistake. |
Author: Michael Jung |
This comment has been minimized.
This comment has been minimized.
comment:7
Replying to @egourgoulhon:
I was afraid that you say that. :D
I suspect the root is #28562. However, the operator |
comment:8
Replying to @mjungmath:
No,
You are right, |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
What about this? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
I think #30181 (Immutable elements of |
Reviewer: Eric Gourgoulhon |
comment:13
Thanks for covering the case of |
comment:14
There is a doctest error in |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
|
comment:36
Changing the doctest outputs, especially in If I remember correctly, our original argument for this behavior was that elements of modules/rings are usually treated immutable and that we should recover this behavior as far as possible. But thanks to Matthias with #30181, and the resulting changes in #30261, our elements are now undoubtfully viewed as mutable elements until they are stated immutable. So, what about keeping the checks and always returning copies after each operation instead? This has also the great advantage that the results are again mutable (i.e. consistent behavior). Since we use fast checks that don't depend on particular elements now, this should also not affect the performance and would fit into the framework. If we decide for the "return-copy-behavior", this ticket would become obsolete. Thus, I hope for a quick response so that I can work further on either one. |
comment:37
FWIW, |
comment:38
Replying to @mkoeppe:
That's good to know. Thanks. Do you also have an opinion which behavior is more suitable? |
comment:39
I've opened another ticket #30302 for this discussion. |
comment:41
Moving this ticket to 9.4, as it seems unlikely that it will be merged in 9.3, which is in the release candidate stage |
comment:42
Setting a new milestone for this ticket based on a cursory review. |
comment:43
Stalled in |
Depends on #30266
Depends on #30291
CC: @egourgoulhon @tscrim @mkoeppe
Component: manifolds
Author: Michael Jung
Branch/Commit: u/gh-mjungmath/tensorfield___call___alters_zero @
9f63351
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/30239
The text was updated successfully, but these errors were encountered: