#12453: Refactor integer vectors using ClonableIntArray Cython data structure
-------------------------------------+-------------------------------------
Reporter: nborie | Owner: nborie
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: Integer, vectors, | Merged in:
cython, clone, Cernay2012 | Reviewers:
Authors: Travis Scrimshaw | Work issues:
Report Upstream: N/A | Commit:
Branch: | 3008ee6a34c023370071bfe1fb324f2b479462ed
public/refactor_integer_vectors-12453| Stopgaps:
Dependencies: #10193 #14101 |
-------------------------------------+-------------------------------------
Comment (by ncohen):
`O_o`
{{{
sage: list(integervectors(1,2))
[[0, 1], [1, 0]]
sage: list(integervectors(3,3))
[[0, 0, 3],
[0, 1, 2],
[0, 2, 1],
[0, 3, 0],
[1, 0, 2],
[1, 1, 1],
[1, 2, 0],
[2, 0, 1],
[2, 1, 0],
[3, 0, 0]]
}}}
Isn't that the lexicographic ordering ? `O_o`
{{{
sage: list(integervectors(3,3)) == sorted(list(integervectors(3,3)))
True
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/12453#comment:19>
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/d/optout.