#15161: Parent/Element relation for ChainComplex/Chain
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.12
Component: algebraic | Resolution:
topology | Merged in:
Keywords: | Reviewers:
Authors: Volker Braun | Work issues:
Report Upstream: N/A | Commit:
Branch: | 7e075ed92f58f2c1cf03518e0facbf9ee48c8a78
u/vbraun/chain_complex_parents | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: new => needs_review
* cc: jhpalmieri, tscrim (added)
Old description:
> Nothing in `sage.homology` makes use of the Parent/Element framework. But
> it would be nice to be able to work with chains and use normal syntax for
> addition and multiplication by scalars. The aim of this ticket is to
> adapt chain complexes. The analogous project for cell complexes will be
> left for a future ticket.
New description:
Nothing in `sage.homology` makes use of the Parent/Element framework. But
it would be nice to be able to work with chains and use normal syntax for
addition and multiplication by scalars. The aim of this ticket is to adapt
chain complexes. The analogous project for cell complexes will be left for
a future ticket.
Next to code cleanup, I also added ascii art support:
{{{
sage: C = ChainComplex([matrix(QQ, 3, 1), matrix(ZZ, 4, 3)])
sage: C
Chain complex with at most 3 nonzero terms over Rational Field
sage: %display ascii_art
sage: C
[0 0 0]
[0 0 0] [0]
[0 0 0] [0]
[0 0 0] [0]
0 <-- C_2 <-------- C_1 <---- C_0 <-- 0
sage: C.an_element()
d_2 [ 9] d_1 [-1/2] d_0 d_-1
0 <---- [ -1] <---- [ 1] <---- [-1] <----- 0
[1/5] [ 1]
[2/7]
}}}
--
Comment:
comment:2 is a minor screwup of the scripts, only the first commit should
have been listed...
In any case, all tests pass for me and I did what I wanted to do on this
ticket. Ready for review...
--
Ticket URL: <http://trac.sagemath.org/ticket/15161#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.