#10132: Differential Geometry via Sage
------------------------------------+---------------------------------------
   Reporter:  mikarm                |       Owner:  mhampton                    
               
       Type:  enhancement           |      Status:  new                         
               
   Priority:  major                 |   Milestone:                              
               
  Component:  geometry              |    Keywords:  differential geometry, 
parametrized surface
     Author:  Mikhail Malakhaltsev  |    Upstream:  N/A                         
               
   Reviewer:                        |      Merged:                              
               
Work_issues:                        |  
------------------------------------+---------------------------------------

Comment(by jvkersch):

 Hi Mikhail,

 Having read your reply, I agree with your point of view.  Certainly it
 would make the package more flexible to have a method to return individual
 components, and one to return all components of the tensor at once.  I was
 too hasty in talking about the "Sage way".

 It turns out there is a very easy way to cache the results of these
 functions, by preceeding them with the decorator `...@cached_method`.  I have
 done a few preliminary tests, and it looks both easy to implement and
 powerful.  For most of the methods, this is the only modification that
 needs to be made.

 I have made a few simplifications to what I implemented previously, and I
 will try to upload a new patch during the weekend, where I just add the
 caching and exceptions.  I will leave in the original methods so that we
 can compare both approaches.

 I just have one practical question for now: did you have a specific reason
 for referring to the components of vectors and tensors by means of indices
 starting from 1 instead of 0?  It does not matter much for tensors (since
 they are a dictionary anyway), but for vectors it would be easier to start
 indexing from 0 instead of 1.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10132#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to