Ignore:
Timestamp:
08/01/07 18:51:21 (6 years ago)
Author:
David Kohel <kohel@…>
Branch:
default
Message:

Added gram_matrix and differentiated gram_matrix and inner_product_matrix,
additionally fix to parent_base which fixed coercion into base ring of algebras.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/structure/parent_base.pyx

    r5489 r5571  
    4949        self._base = base 
    5050         
     51    cdef _coerce_c_impl(self,x): 
     52       if not self._base is self: 
     53           return self._coerce_try(x,(self._base)) 
     54       else: 
     55           raise TypeError, "No canonical coercion found." 
     56 
    5157##     def x__reduce__(self): 
    5258##         if HAS_DICTIONARY(self): 
Note: See TracChangeset for help on using the changeset viewer.