Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #30838: Generators for homology of simplicial complexes
This is a followup to #6100, and was reported on [https://ask.sagemath.org/question/54070/generators-of-simplicial- homology/ this ask question]. If `K` is a simplicial complex, the `generators` argument to `K.homology(...)` does nothing: `K.homology(...)` calls the `homology` method for generic cell complexes, which in turn calls `_homology_` for simplicial complexes, and that method ignores the `generators` keyword. There is an easy solution: in the generic `homology` method, if `generators` is True, then don't call `_homology_`, just continue in that method. This will give information about chain complex generators. It is possible, although obscure, to extract the simplicial complex information from that. A better solution: actually do the obscure work, don't force the users to figure it out. That is: - call `K.chain_complex(generators=True)`, and - use `K._n_cells_sorted()` to convert the chain complex generators (which are just vectors in the corresponding free module over the base ring) to actual chains in the simplicial complex. URL: https://trac.sagemath.org/30838 Reported by: jhpalmieri Ticket author(s): John Palmieri Reviewer(s): Travis Scrimshaw
- Loading branch information
Showing
3 changed files
with
97 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters