#17977 closed defect (fixed)
Corner sum matrix ASM method has incorrect output
Reported by: | jessicapalencia | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-6.6 |
Component: | combinatorics | Keywords: | days64 |
Cc: | tscrim, jamespropp, vinceknight, jcampbell, egunawan | Merged in: | |
Authors: | Jessica Striker, James Campbell, Kevin Dilks | Reviewers: | James Campbell, Vince Knight |
Report Upstream: | N/A | Work issues: | |
Branch: | 7f09e7e (Commits, GitHub, GitLab) | Commit: | |
Dependencies: | Stopgaps: |
Description (last modified by )
Corner sum matrix method on AlternatingSignMatrix has incorrect output:
See the following example:
a = AlternatingSignMatrix([[0,0,1],[1,0,0],[0,1,0]]) a.corner_sum_matrix() [0 0 0 0] [0 0 1 1] [0 0 1 2] [0 1 2 3]
The result should be the transpose of what is displayed. See the definition in Section 2 of http://arxiv.org/abs/math/0208125.
[0 0 0 0] [0 0 0 1] [0 1 1 2] [0 1 2 3]
Also, the documentation has this example, which is wrong and should be changed.
Change History (20)
comment:1 Changed 7 years ago by
- Description modified (diff)
comment:2 Changed 7 years ago by
- Description modified (diff)
comment:3 Changed 7 years ago by
- Cc vinceknight added
comment:4 Changed 7 years ago by
- Description modified (diff)
comment:5 Changed 7 years ago by
- Cc jcampbell added
comment:6 Changed 7 years ago by
- Cc egunawan added
comment:7 Changed 7 years ago by
- Branch set to u/kdilks/asmpatch
comment:8 Changed 7 years ago by
- Commit set to 028e5f75cba440c4435ce8082a101a47d057748f
comment:9 Changed 7 years ago by
- Status changed from new to needs_review
comment:10 Changed 7 years ago by
- Reviewers set to jcampbell
- Status changed from needs_review to positive_review
all looks good to me
comment:11 Changed 7 years ago by
Did all the tests pass? There are some functions that use corner_sum_matrix, such as gyration and height _function.
comment:12 Changed 7 years ago by
And ASM_compatible_bigger, etc...
comment:13 Changed 7 years ago by
all the tests in alternating_sign_matrix.py
passed. Is it used in any other files?
comment:14 Changed 7 years ago by
- Status changed from positive_review to needs_work
More tests should be added to check non-symmetric cases.
comment:15 Changed 7 years ago by
- Branch changed from u/kdilks/asmpatch to u/jcampbell/17977
- Commit changed from 028e5f75cba440c4435ce8082a101a47d057748f to 7f09e7eb242101e2963a50cd83334d5b02e096d5
- Status changed from needs_work to needs_review
comment:16 Changed 7 years ago by
comment:17 Changed 7 years ago by
- Reviewers changed from jcampbell to jcampbell, vinceknight
- Status changed from needs_review to positive_review
I've checked through and the extra tests are good. As long as the buildbot passes I think this is now complete.
comment:18 Changed 7 years ago by
- Reviewers changed from jcampbell, vinceknight to James Campbell, Vince Knight
comment:19 Changed 7 years ago by
- Branch changed from u/jcampbell/17977 to 7f09e7eb242101e2963a50cd83334d5b02e096d5
- Resolution set to fixed
- Status changed from positive_review to closed
comment:20 Changed 6 years ago by
- Commit 7f09e7eb242101e2963a50cd83334d5b02e096d5 deleted
I'll look at this now
New commits:
corrected code and incorrect example