We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7726cd9 commit b8fa032Copy full SHA for b8fa032
src/sage/matrix/matrix_rational_dense.pyx
@@ -2955,13 +2955,19 @@ cdef class Matrix_rational_dense(Matrix_dense):
2955
[ 1/28 -1/40 -1/18]
2956
[ 1/28 -1/40 1/18]
2957
[ 0 -3/40 0]
2958
+ sage: L, U = A.LLL(transformation=True)
2959
+ sage: U * A == L
2960
+ True
2961
2962
sage: A = random_matrix(QQ, 10, 10)
2963
sage: d = lcm(a.denom() for a in A.list())
2964
sage: A.LLL() == (A * d).change_ring(ZZ).LLL() / d
2965
True
2966
"""
2967
A, d = self._clear_denom()
2968
+ if kwargs.get('transformation', False):
2969
+ L, U = A.LLL(*args, **kwargs)
2970
+ return L / d, U
2971
return A.LLL(*args, **kwargs) / d
2972
2973
def is_LLL_reduced(self, delta=None, eta=None):
0 commit comments