Changes between Initial Version and Version 6 of Ticket #23376
 Timestamp:
 07/13/17 17:49:51 (4 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #23376

Property
Status
changed from
new
toneeds_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

Property
Status
changed from

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 {{{ 2 sage: D4 = QuadraticForm(Matrix(ZZ,4,4,[2,0,0,1,0,2,0,1,0,0,2,1,1,1,1,2])) 3 sage: G = D4.global_genus_symbol() 3 4 sage: sage.quadratic_forms.genera.genus.is_GlobalGenus(G) 4 5 True 5 sage: G ==copy(G)6 sage: G == copy(G) 6 7 True 7 8 sage: sage.quadratic_forms.genera.genus.is_GlobalGenus(G) 8 9 False 10 }}} 9 11 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. 12 The 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. 12 13 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. 14 For example sage.quadratic_forms.genera.genus.canonical_2_adic_reduction modifies its input which does not seem to be intended.