Changes between Initial Version and Version 6 of Ticket #23376


Ignore:
Timestamp:
07/13/17 17:49:51 (4 years ago)
Author:
vdelecroix
Comment:

(reformatting)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23376

    • Property Status changed from new to needs_review
    • Property Commit changed from to 8e62210714bf1bcc426733eab9848bd3ff230c23
    • Property Branch changed from to u/sbrandhorst/equality_testing_of_genera_of_quadratic_forms_over_zz_changes_the_genus_and_produces_false_results
  • Ticket #23376 – Description

    initial v6  
    1 sage: D4=QuadraticForm(Matrix(ZZ,4,4,[2,0,0,-1,0,2,0,-1,0,0,2,-1,-1,-1,-1,2]))
    2 sage: G=D4.global_genus_symbol()
     1{{{
     2sage: D4 = QuadraticForm(Matrix(ZZ,4,4,[2,0,0,-1,0,2,0,-1,0,0,2,-1,-1,-1,-1,2]))
     3sage: G = D4.global_genus_symbol()
    34sage: sage.quadratic_forms.genera.genus.is_GlobalGenus(G)
    45True
    5 sage: G==copy(G)
     6sage: G == copy(G)
    67True
    78sage: sage.quadratic_forms.genera.genus.is_GlobalGenus(G)
    89False
     10}}}
    911
    10 The reason is that various functions unintentionally modify their input.
    11 Since a genus consists of lists containing lists, functions do just copy the lists but not deepcopy.
     12The reason is that various functions unintentionally modify their input. Since a genus consists of lists containing lists, functions do just copy the lists but not deepcopy.
    1213
    13 For example
    14 sage.quadratic_forms.genera.genus.canonical_2_adic_reduction
    15 
    16 modifies its input which does not seem to be intended.
     14For example sage.quadratic_forms.genera.genus.canonical_2_adic_reduction modifies its input which does not seem to be intended.