-
-
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
Tensor Fields: Better Zero Treatment #28562
Comments
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
In |
comment:9
Also, I removed the |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
The code snippet (see commits 5d30100 and d949a13) was quite messy. Well, it still is. At least it is readable and works for now. It gets a little bit better after merging (see #28519). I will think about a better solution. But I guess, this requires a complete reorganization of the mixed form code. |
comment:13
After a bit of thinking, I came to the conclusion that the code snippet should be obsolete. (As a mathematician, I feel the urge to solve or fix a problem/error as soon as it occurs. Here: Doctest errors.) The thing is, due to our little discussion in #28519, the doctest must be flawed since mixed forms defined via preconstructed forms get altered. So, I 'm going to delete this snippet again and modify the affected doctests. Do you agree with my conclusion and procedure? A further doctest change is devoted to #28578. |
This comment has been minimized.
This comment has been minimized.
comment:15
Replying to @DeRhamSource:
Which code snippet are you talking about? All the code in this ticket branch? |
comment:16
Replying to @egourgoulhon:
No, only the last two/three commits. Namely the changes in |
comment:17
Replying to @DeRhamSource:
I am not sure to understand what you have in mind; I would say please go on and implement what you think is the best solution. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:30
I just gave a quick look at the latest version. Looks good. I'll have a deeper look tomorrow. |
comment:32
I've finally gone through the ticket. The impression stated in comment:30 is confirmed: this is a nice improvement of the code! Thank you. I have made minor modifications, which have been pushed in the above branch. In particular
Do you agree with these changes? New commits:
|
Changed branch from u/gh-DeRhamSource/better_zero_treatment_alternative to public/manifolds/better_zero_treatment |
comment:33
Yes, looks good! :) |
comment:34
I just have two trivial changes: -The components w.r.t. basis e have been kept::
+The components with respect to basis ``e`` have been kept:: and in
remove the blank line after |
comment:35
On my side, one last remark: the names of the methods |
comment:36
This naming convention matches what is done for vectors (and maybe matrices?) in Sage. Although in that case, if you mess with things in the wrong way, you will crash Sage. However, given the nomenclature of other methods, I think |
comment:37
Replying to @tscrim:
Ah yes! ( |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:39
Replying to @tscrim:
Since this issue is not just devoted to this ticket, I vote for a new ticket on that.
Done. |
comment:40
Replying to @DeRhamSource:
Indeed. I am afraid I am responsible for most of these |
comment:41
Thanks for your work on this! |
Reviewer: Eric Gourgoulhon, Travis Scrimshaw |
Changed branch from public/manifolds/better_zero_treatment to |
The zero element is always a special element. Therefore it should be treated as such. It should shorten computations and certainly be immutable. This ticket is devoted to that topic. (Similarly for the one element in the scalar field and mixed form algebra).
This ticket is part of the metaticket #28519.
Features
_is_zero
is added to tensor fields and mixed form (similar to scalar fields)_is_zero
attribute is applied for copiesCC: @tscrim @egourgoulhon
Component: geometry
Keywords: tensor fields, scalar fields, mixed forms
Author: Michael Jung
Branch/Commit:
f2928f8
Reviewer: Eric Gourgoulhon, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/28562
The text was updated successfully, but these errors were encountered: