summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Caruso <xavier.caruso@univ-rennes1.fr>2017-08-02 11:03:46 +0200
committerXavier Caruso <xavier.caruso@univ-rennes1.fr>2017-08-02 11:03:46 +0200
commit399e9534e8ac77a43688fd58242c48297f927890 (patch)
treee93e3949072fbd12d9eac4b2901a52ef194370b7
parentTypos (diff)
Fix element_class
-rw-r--r--src/sage/rings/padics/factory.py8
-rw-r--r--src/sage/rings/padics/padic_base_leaves.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/sage/rings/padics/factory.py b/src/sage/rings/padics/factory.py
index 64f0e60..5d63c5b 100644
--- a/src/sage/rings/padics/factory.py
+++ b/src/sage/rings/padics/factory.py
@@ -2465,22 +2465,22 @@ def ZpLP(p, prec = DEFAULT_PREC, print_mode = None, halt = DEFAULT_HALT, names =
Each elementary operation requires significant manipulations
on the lattice precision and then is costly. Precisely:
- - The creation of a new element has a cost `O(n)` when `n`
+ - The creation of a new element has a cost `O(n)` where `n`
is the number of tracked elements.
- - The destruction of one element has a cost `O(m^2)` when
+ - The destruction of one element has a cost `O(m^2)` where
`m` is the distance between the destroyed element and
the last one. Fortunately, it seems that `m` tends to
be small in general (the dynamics of the list of tracked
elements is rather close to that of a stack).
It is nevertheless still possible to manipulate several
- hundred variables (e.g. squares matrices of size 5 or
+ hundred variables (e.g. square matrices of size 5 or
polynomials of degree 20 are accessible).
The class :class:`PrecisionLattice` provides several
features for introspection (especially concerning timings).
- If enables, it maintains an history of all actions and stores
+ If enabled, it maintains an history of all actions and stores
the wall time of each of them::
sage: R = ZpLP(3)
diff --git a/src/sage/rings/padics/padic_base_leaves.py b/src/sage/rings/padics/padic_base_leaves.py
index 3d95fba..fd020d4 100644
--- a/src/sage/rings/padics/padic_base_leaves.py
+++ b/src/sage/rings/padics/padic_base_leaves.py
@@ -921,7 +921,7 @@ class pAdicLatticeGeneric(pAdicGeneric):
class pAdicRingLattice(pAdicLatticeGeneric, pAdicRingBaseGeneric):
def __init__(self, p, prec, print_mode, name, label=None, proof=False):
pAdicLatticeGeneric.__init__(self, p, prec, label, proof)
- pAdicRingBaseGeneric.__init__(self, p, prec, print_mode, str(p), None)
+ pAdicRingBaseGeneric.__init__(self, p, prec, print_mode, str(p), pAdicLatticeElement)
def _repr_(self, do_latex=False):
if do_latex:
@@ -963,7 +963,7 @@ class pAdicRingLattice(pAdicLatticeGeneric, pAdicRingBaseGeneric):
class pAdicFieldLattice(pAdicLatticeGeneric, pAdicFieldBaseGeneric):
def __init__(self, p, prec, print_mode, name, label=None, proof=False):
pAdicLatticeGeneric.__init__(self, p, prec, label, proof)
- pAdicFieldBaseGeneric.__init__(self, p, prec, print_mode, str(p), None)
+ pAdicFieldBaseGeneric.__init__(self, p, prec, print_mode, str(p), pAdicLatticeElement)
def _repr_(self, do_latex=False):
if do_latex: