I'm forwarding this to sage-support...

On Dec 19, 2012 8:52 AM, "Ian Hambleton" <[email protected]> wrote:
>
> Dear Professor Stein,
> I am trying to use the Sage diagonalization routine found in:
>
>
http://www.sagemath.org/doc/reference/sage/matrix/matrix_integer_dense.html
>
> The example given in the Sage documentation works fine, but the larger
example below does not complete (hours later) on my machine, or in running
Sage online through its webpage.
>
> Is this matrix too large, or have I made a mistake in the commands ?
>
> Any help you can provide would be most appreciated.
>
> best regards,
>
> Ian Hambleton
>
> PS: Is there a version which will accept matrices over finite fields or
rings Z/n ?
>
>
> sage: D=Matrix(IntegerModRing(),
[[-1,1,0,1,1,0],[1,-3,1,0,0,0],[0,1,-2,0,0,0],[1,0,0,-3,0,0],[1,0,0,0,-4,1],[0,0,0,0,1,-5]]);D
> [-1  1  0  1  1  0]
> [ 1 -3  1  0  0  0]
> [ 0  1 -2  0  0  0]
> [ 1  0  0 -3  0  0]
> [ 1  0  0  0 -4  1]
> [ 0  0  0  0  1 -5]
> sage: X = D.LLL_gram(); X
> sage: X.transpose() * D * X
>
>
> -----------------------------------------------------
>
> Department of Mathematics & Statistics
>
> McMaster University
>
> 1280 Main St. West
>
> Hamilton, ON  L8S 4K1, CANADA
>
> Phone:  (905) 525-9140 x 27302
>
> Fax:      (905) 522-0935
>
> Web: http://www.math.mcmaster.ca/ian/ian.html
>
> -----------------------------------------------------
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to