summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Caruso <xavier.caruso@univ-rennes1.fr>2018-02-04 20:57:17 +0100
committerXavier Caruso <xavier.caruso@univ-rennes1.fr>2018-02-04 20:57:17 +0100
commitc04c37021a9de330f88c8c0c7d6d1012c6561a3f (patch)
tree14b946aac7a2e3537b3950b16c908de99f2d7fda
parentMerge branch 'develop' into lattice_precision (diff)
Doctest for abstract methods
-rw-r--r--src/sage/rings/padics/lattice_precision.py34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/sage/rings/padics/lattice_precision.py b/src/sage/rings/padics/lattice_precision.py
index 66ca62c..f05d04c 100644
--- a/src/sage/rings/padics/lattice_precision.py
+++ b/src/sage/rings/padics/lattice_precision.py
@@ -464,21 +464,53 @@ class DifferentialPrecisionGeneric(UniqueRepresentation, SageObject):
return len(self._matrix)
def dimension(self):
+ """
+ Return the dimension of this precision module
+
+ This method must be implemented in subclasses
+ """
raise NotImplementedError("implement this function is subclasses")
- def new_element(self):
+ def new_element(self, *args):
+ """
+ Insert a new element in this precision module
+
+ This method must be implemented in subclasses
+ """
raise NotImplementedError("implement this function is subclasses")
def mark_for_deletion(self, ref):
+ """
+ Mark for deletion an element of this precision module.
+
+ This method must be implemented in subclasses
+ """
raise NotImplementedError("implement this function is subclasses")
def del_elements(self, thresold=None):
+ """
+ Delete all elements marked for deletion up to the given thresold
+
+ This method must be implemented in subclasses
+ """
raise NotImplementedError("implement this function in subclasses")
def precision_absolute(self, x):
+ """
+ Return the absolute precision of the given element
+
+ This method must be implemented in subclasses
+ """
raise NotImplementedError("implement this function in subclasses")
def precision_lattice(self, elements=None):
+ """
+ Return a lattice modeling the precision on the given set of elements
+ or, if not given, on the whole set of elements tracked by the precision
+ module
+
+ This method must be implemented in subclasses
+ """
raise NotImplementedError("implement this function in subclasses")
def number_of_diffused_digits(self, elements=None):