Changeset 7553:1065b01a711e
- Timestamp:
- 12/05/07 18:48:52 (5 years ago)
- Branch:
- default
- Location:
- sage
- Files:
-
- 7 edited
-
misc/misc.py (modified) (3 diffs)
-
rings/polynomial/polynomial_element.pyx (modified) (1 diff)
-
schemes/elliptic_curves/ell_point.py (modified) (1 diff)
-
structure/coerce.pxi (modified) (2 diffs)
-
structure/coerce.pyx (modified) (1 diff)
-
structure/element.pyx (modified) (1 diff)
-
structure/parent_base.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/misc/misc.py
r7351 r7553 826 826 [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20] 827 827 828 Sometimes one or more ranges is em tpy.828 Sometimes one or more ranges is empty. 829 829 sage: ellipsis_range(100,Ellipsis,10,Ellipsis,20,step=2) 830 830 [10, 12, 14, 16, 18, 20] … … 1233 1233 1234 1234 The following example is similar to one in the MAGMA handbook. We 1235 check whether certain integers are a s omeof two (small) cubes:1235 check whether certain integers are a sum of two (small) cubes: 1236 1236 1237 1237 sage: cubes = [t**3 for t in range(-10,11)] … … 1433 1433 sage: v = [1,2,3] 1434 1434 1435 The following use to fail in SAGE <= 1.3.7. Now it works fine:1435 The following used to fail in SAGE <= 1.3.7. Now it works fine: 1436 1436 sage: v[ZZ(1)] 1437 1437 2 -
sage/rings/polynomial/polynomial_element.pyx
r7541 r7553 914 914 915 915 def _pow(self, right): 916 # TODO: fit __pow__ into the arithm atic structure916 # TODO: fit __pow__ into the arithmetic structure 917 917 if self.degree() <= 0: 918 918 return self.parent()(self[0]**right) -
sage/schemes/elliptic_curves/ell_point.py
r5945 r7553 641 641 def make_point(X, v): 642 642 # TODO: Unpickled parents with base sometimes have thier base set to None. 643 # This causes a segfault in the module arithm atic architecture.643 # This causes a segfault in the module arithmetic architecture. 644 644 # 645 645 # sage: H = HomsetWithBase(QQ, RR, base=ZZ); H -
sage/structure/coerce.pxi
r7241 r7553 72 72 73 73 ################################################################################# 74 # Inline arithm atic dispatchers for ModuleElements and RingElements74 # Inline arithmetic dispatchers for ModuleElements and RingElements 75 75 ################################################################################# 76 76 … … 145 145 146 146 cdef enum: 147 # 3 references: handle, scope container, and arithm atic call stack147 # 3 references: handle, scope container, and arithmetic call stack 148 148 inplace_threshold = 0 149 149 -
sage/structure/coerce.pyx
r7525 r7553 519 519 We can read of this data that the most expensive operation was the creation 520 520 of the action of $\Q$ on $\Z[x]$ (whose result lies in $\Q[x]$. This has 521 been cached as ill istrated below.521 been cached as illustrated below. 522 522 523 523 sage: coerce.flush() -
sage/structure/element.pyx
r7454 r7553 153 153 154 154 155 For speed, there are also {\bf inplace} version of the arithm atic commands.155 For speed, there are also {\bf inplace} version of the arithmetic commands. 156 156 DD NOT call them directly, they may mutate the object and will be called 157 157 when and only when it has been determined that the old object will no longer -
sage/structure/parent_base.pyx
r6606 r7553 10 10 11 11 # TODO: Unpickled parents with base sometimes have thier base set to None. 12 # This causes a segfault in the module arithm atic architecture.12 # This causes a segfault in the module arithmetic architecture. 13 13 # 14 14 # sage: H = HomsetWithBase(QQ, RR, base=ZZ); H
Note: See TracChangeset
for help on using the changeset viewer.
