Ticket #4492: trac_4492-doctest-number-field.patch

File trac_4492-doctest-number-field.patch, 898 bytes (added by rbeezer, 11 years ago)
  • sage/rings/number_field/number_field_ideal.py

    # HG changeset patch
    # User Rob Beezer <beezer@ups.edu>
    # Date 1296001696 28800
    # Node ID 8e19156200478e3edf6f8f4e6988ede8cc004b35
    # Parent  959d926424839963cfd7088a40cdf3a3dc7977b2
    4492: number field ideal block matrix change
    
    diff -r 959d92642483 -r 8e1915620047 sage/rings/number_field/number_field_ideal.py
    a b  
    23632363        C = hmat[len(invs):, len(invs):]
    23642364        #print "Matrix of relations:\n%s" % C
    23652365        M = (matrix(ZZ, L) * B)
    2366         N = block_matrix([identity_matrix(1), M, zero_matrix(len(gens), 1), C], 2,2,subdivide=False)
     2366        N = block_matrix(2, 2, [[identity_matrix(1), M], [zero_matrix(len(gens), 1), C]], subdivide=False)
    23672367        ans = N.hermite_form()[0, 1:].list()
    23682368
    23692369        if check: