1 | initial version |
You want the vector
method:
sage: S = SimplicialComplex([[1,2],[1,3],[1,4],[2,3],[2,4]])
sage: H = S.chain_complex().homology(generators=True)[1][0][1]
sage: H.vector?
Signature: H.vector(degree)
Docstring:
Return the free module element in "degree".
EXAMPLES:
sage: C = ChainComplex({0: matrix(ZZ, 2, 3, [3, 0, 0, 0, 0, 0])})
sage: c = C({0:vector([1, 2, 3]), 1:vector([4, 5])})
sage: c.vector(0)
(1, 2, 3)
sage: c.vector(1)
(4, 5)
sage: c.vector(2)
()
Init docstring: Initialize self. See help(type(self)) for accurate signature.
File: ~/Desktop/Sage/git/sage/src/sage/homology/chain_complex.py
Type: method
sage: H.vector(1)
(1, 0, -1, 0, 1)
2 | No.2 Revision |
You want the vector
method:
sage: S = SimplicialComplex([[1,2],[1,3],[1,4],[2,3],[2,4]])
sage: H = S.chain_complex().homology(generators=True)[1][0][1]
sage: H.vector?
Signature: H.vector(degree)
Docstring:
Return the free module element in "degree".
EXAMPLES:
sage: C = ChainComplex({0: matrix(ZZ, 2, 3, [3, 0, 0, 0, 0, 0])})
sage: c = C({0:vector([1, 2, 3]), 1:vector([4, 5])})
sage: c.vector(0)
(1, 2, 3)
sage: c.vector(1)
(4, 5)
sage: c.vector(2)
()
Init docstring: Initialize self. See help(type(self)) for accurate signature.
File: ~/Desktop/Sage/git/sage/src/sage/homology/chain_complex.py
Type: method
sage: H.vector(1)
(1, 0, -1, 0, 1)
sage: v = H.vector(1)
sage: type(v)
<class 'sage.modules.vector_integer_dense.Vector_integer_dense'>