Closed jhpalmieri closed 7 years ago
Branch: u/jhpalmieri/contiguity
New commits:
99a1cb6 | Check whether two morphisms of simplicial complexes are contiguous. |
Commit: 99a1cb6
I've made some reviewer changes, but you are currently inconsistent. If the user inputs something that is not a map, we raise a ValueError
, but if the map has differing domain and codomains, then you return False
. In both cases, the input is nonsensical, and I would argue (just like for is_similar
for matrices) that the return should be False
in both cases because they are not contiguous. Thoughts?
New commits:
415cb0d | Some reviewer changes. |
Reviewer: Travis Scrimshaw
Changed branch from u/jhpalmieri/contiguity to u/tscrim/contiguity-21847
Changed branch from u/tscrim/contiguity-21847 to u/jhpalmieri/contiguity-21847
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
2ad7a2d | trac 21847: if the two maps don't have the same domain and codomain, |
Branch pushed to git repo; I updated commit sha1. New commits:
4c43aa4 | trac 21847: fix TESTS |
I don't have strong feelings about it, so I don't mind returning False
in both cases. The original version was intentionally inconsistent: it may make sense to ask if any two simplicial maps are contiguous, but it doesn't make sense to ask if a map is contiguous to a matrix.
By the way, is_similar
raises an error if you plug in a non-matrix, but it just returns False
if you plug in a matrix of the wrong shape. So the original behavior was more like is_similar
than the new version.
Travis was referring to #18505 (needs review), and to the controversy and vote on sage-devel about what to do with bad input there.
Right, I remember that now. The issue with is_similar
was how to handle matrices of different shapes, which I think is more like how to handle morphisms of simplicial complexes with mismatched domains and/or codomains (return False
, I say), rather than how to handle inputs which aren't even morphisms (raise an error in my original version here, not that I care too much).
LGTM. Thanks.
Changed branch from u/jhpalmieri/contiguity-21847 to 4c43aa4
Implement a check for whether two morphisms of simplicial complexes are contiguous.
CC: @tscrim @fchapoton
Component: algebraic topology
Author: John Palmieri
Branch/Commit:
4c43aa4
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/21847