On Wed, Mar 12, 2014 at 06:41:07AM -0700, Eric Gourgoulhon wrote:
>    In order to treat tensor fields on a parallelizable domain N of some
>    smooth manifold as elements of a free module (cf. #15916 and this post),
>    one has first to introduce the commutative ring C^oo(N) of smooth
>    functions N --> R, as a new class, ScalarFieldRing say. Browsing through
>    Sage reference manual, a natural guess would be to make it a subclass of
>    CommutativeRing:

You don't necessarily need too. You could also just inherit from
Parent; the important thing is to set the category to
CommutativeRings().

CommutativeRing is a bit of a legacy stuff: it's still there because
some features have not yet been moved to categories, and also because
some parents where pure arithmetic speed on elements is vital
(e.g. small finite fields), need it to by Cython.

Cheers,
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to