Changeset 5489:d56640da7b08
- Timestamp:
- 07/23/07 17:49:43 (6 years ago)
- Branch:
- default
- Location:
- sage
- Files:
-
- 4 edited
-
groups/perm_gps/permgroup_element.py (modified) (1 diff)
-
modules/free_module_element.pyx (modified) (2 diffs)
-
structure/coerce.pyx (modified) (3 diffs)
-
structure/parent_base.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/groups/perm_gps/permgroup_element.py
r5485 r5489 222 222 self.__gap = str(g) 223 223 if parent is None: 224 parent = permgroup_named.SymmetricGroup(self._gap_().LargestMovedPoint())224 parent = SymmetricGroup(self._gap_().LargestMovedPoint()) 225 225 element.Element.__init__(self, parent) 226 226 -
sage/modules/free_module_element.pyx
r5487 r5489 873 873 874 874 cdef ModuleElement _rmul_c_impl(self, RingElement left): 875 """ 876 EXAMPLES: 877 sage: V = ZZ['x']^5 878 sage: 5 * V.0 879 (5, 0, 0, 0, 0) 880 """ 875 881 if left._parent is self._parent._base: 876 882 v = [left._mul_c(<RingElement>x) for x in self._entries] 877 883 else: 878 v = [left * x for x in v]884 v = [left * x for x in self._entries] 879 885 return self._new_c(v) 880 886 … … 883 889 v = [(<RingElement>x)._mul_c(right) for x in self._entries] 884 890 else: 885 v = [x * right for x in v]891 v = [x * right for x in self._entries] 886 892 return self._new_c(v) 887 893 -
sage/structure/coerce.pyx
r5488 r5489 365 365 366 366 if op is operator.div: 367 try: 368 K = S.fraction_field() 369 except AttributeError: 370 K = S 371 367 372 if PY_TYPE_CHECK(S, Parent): 368 action = (<Parent> S).get_action_c(R, operator.mul, False)369 if action is not None and action.actor() is S:373 action = (<Parent>K).get_action_c(R, operator.mul, False) 374 if action is not None and action.actor() is K: 370 375 try: 371 376 return ~action … … 373 378 pass 374 379 if PY_TYPE_CHECK(R, Parent): 375 action = (<Parent>R).get_action_c( S, operator.mul, True)376 if action is not None and action.actor() is S:380 action = (<Parent>R).get_action_c(K, operator.mul, True) 381 if action is not None and action.actor() is K: 377 382 try: 378 383 return ~action … … 445 450 # implemented with the assumption that 446 451 # _rmul_ is given an element of the basering 452 # print "G", G 453 # print "S", S 447 454 if G is not S.base() and S.base() is not S: 448 455 self.connecting = S.base().coerce_map_from(G) -
sage/structure/parent_base.pyx
r5482 r5489 325 325 cdef ParentWithBase self_b 326 326 self_b = self._base 327 if self_b is self :327 if self_b is self or self_b is None: 328 328 return None 329 329 try:
Note: See TracChangeset
for help on using the changeset viewer.
