#11612: Bug in NTL wrapper when computing LLL -- 5x5 matrix with 0 rows and 0
columns
--------------------------+-------------------------------------------------
   Reporter:  was         |          Owner:  was       
       Type:  defect      |         Status:  new       
   Priority:  major       |      Milestone:  sage-4.7.2
  Component:  interfaces  |       Keywords:            
Work_issues:              |       Upstream:  N/A       
   Reviewer:              |         Author:            
     Merged:              |   Dependencies:            
--------------------------+-------------------------------------------------
 {{{

 sage: B=ntl.mat_ZZ(5,5,range(25))
 sage: B.list()
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
 21, 22, 23, 24]
 sage: a,U=B.LLL_XD(0.99,True,True)
 ---- LLL_XD status ----
 elapsed time: 0, stage: 3, rank: 2, swaps: 0
 log of prod of lengths: 5.19937
 sage: U
 [
 [2 -3 0 1 0]
 [1 -2 1 0 0]
 [3 -4 0 0 1]
 [1 0 0 0 0]
 [-3 1 0 0 0]
 ]
 sage: type(U)
 <type 'sage.libs.ntl.ntl_mat_ZZ.ntl_mat_ZZ'>
 sage: sage: U.list()
 []
 sage: U[0]
 ERROR
 sage: U.nrows()
 0
 sage: U.ncols()
 0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11612>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to