@@ -24,10 +24,10 @@ from .matrix_rational_sparse cimport Matrix_rational_sparse
24
24
25
25
matrix_integer_dense_rational_reconstruction = \
26
26
LazyImport(' sage.matrix.misc_flint' , ' matrix_integer_dense_rational_reconstruction' ,
27
- deprecation = 99999 )
27
+ deprecation = 35758 )
28
28
hadamard_row_bound_mpfr = \
29
29
LazyImport(' sage.matrix.misc_mpfr' , ' hadamard_row_bound_mpfr' ,
30
- deprecation = 99999 )
30
+ deprecation = 35758 )
31
31
32
32
33
33
def matrix_integer_sparse_rational_reconstruction (Matrix_integer_sparse A , Integer N ):
@@ -39,7 +39,8 @@ def matrix_integer_sparse_rational_reconstruction(Matrix_integer_sparse A, Integ
39
39
EXAMPLES::
40
40
41
41
sage: A = matrix(ZZ, 3, 4, [(1/3)%500, 2, 3, (-4)%500, 7, 2, 2, 3, 4, 3, 4, (5/7)%500], sparse=True)
42
- sage: sage.matrix.misc.matrix_integer_sparse_rational_reconstruction(A, 500)
42
+ sage: from sage.matrix.misc import matrix_integer_sparse_rational_reconstruction
43
+ sage: matrix_integer_sparse_rational_reconstruction(A, 500)
43
44
[1/3 2 3 -4]
44
45
[ 7 2 2 3]
45
46
[ 4 3 4 5/7]
@@ -329,29 +330,30 @@ def cmp_pivots(x, y):
329
330
"""
330
331
Compare two sequences of pivot columns.
331
332
332
- If x is shorter than y , return -1 , i.e., x < y, "not as good".
333
- If x is longer than y , then x > y, so "better" and return +1 .
334
- If the length is the same, then x is better, i.e., x > y
335
- if the entries of x are correspondingly <= those of y with
333
+ If `x` is shorter than `y` , return `-1` , i.e., ` x < y` , "not as good".
334
+ If `x` is longer than `y` , then ` x > y` , so "better" and return `+1` .
335
+ If the length is the same, then `x` is better, i.e., ` x > y`
336
+ if the entries of `x` are correspondingly `\leq` those of `y` with
336
337
one being strictly less.
337
338
338
339
INPUT:
339
340
340
- - x, y -- lists or tuples of integers
341
+ - ``x``, ``y`` -- lists or tuples of integers
341
342
342
343
EXAMPLES:
343
344
344
345
We illustrate each of the above comparisons. ::
345
346
346
- sage: sage.matrix.misc.cmp_pivots([1,2,3], [4,5,6,7])
347
+ sage: from sage.matrix.misc import cmp_pivots
348
+ sage: cmp_pivots([1,2,3], [4,5,6,7])
347
349
-1
348
- sage: sage.matrix.misc. cmp_pivots([1,2,3,5], [4,5,6])
350
+ sage: cmp_pivots([1,2,3,5], [4,5,6])
349
351
1
350
- sage: sage.matrix.misc. cmp_pivots([1,2,4], [1,2,3])
352
+ sage: cmp_pivots([1,2,4], [1,2,3])
351
353
-1
352
- sage: sage.matrix.misc. cmp_pivots([1,2,3], [1,2,3])
354
+ sage: cmp_pivots([1,2,3], [1,2,3])
353
355
0
354
- sage: sage.matrix.misc. cmp_pivots([1,2,3], [1,2,4])
356
+ sage: cmp_pivots([1,2,3], [1,2,4])
355
357
1
356
358
"""
357
359
x = tuple (x)
0 commit comments