Changes between Initial Version and Version 2 of Ticket #28628


Ignore:
Timestamp:
10/18/19 13:58:35 (2 years ago)
Author:
gh-DeRhamSource
Comment:

New commits:

e30ec5b'set_restriction' modified and 'copy_from' method added

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28628

    • Property Status changed from new to needs_review
    • Property Cc egourgoulhon added
    • Property Branch changed from to u/gh-DeRhamSource/tensor_fields__set_restriction_behaviour
    • Property Keywords manifolds added
    • Property Commit changed from to e30ec5b88f8c3144c08e731d85c4c79e58595cc4
    • Property Type changed from PLEASE CHANGE to defect
  • Ticket #28628 – Description

    initial v2  
     1The following code leads to an error:
     2
     3{{{
     4sage: M = Manifold(2, 'M')
     5sage: X.<x,y> = M.chart()
     6sage: eX = X.frame()
     7sage: a = M.one_form()
     8sage: b = M.one_form()
     9sage: a[eX,:] = x*y, x+y
     10sage: b.set_restriction(a)
     11sage: b.display()
     12
     13ValueError   Traceback (most recent call last)
     14...
     15
     16ValueError: no basis could be found for computing the components in the Coordinate frame (M, (d/dx,d/dy))
     17}}}
     18
     19Mathematically, this should not happen.
     20
     21A method `copy_from` is added, and in case of the same domain, the `copy_from` method is invoked, when `set_restriction` is used.