Re: [sage-devel] Obtain a lattice basis of a linear rational subspace

2020-11-11 Thread 'jonatha...@googlemail.com' via sage-devel
Thank you David, this is exactly what I was looking for. I can even skip the denominator part, as I'm starting with a ZZ-matrix. Jonathan David Roe schrieb am Mittwoch, 11. November 2020 um 20:18:50 UTC+1: > I think this should do what you need: > > sage: A = matrix([ > : (1, 0, 0, 0, 1/1

[sage-devel] Re: Sage 9.3 release cycle

2020-11-11 Thread Matthias Koeppe
On Tuesday, November 10, 2020 at 2:14:29 PM UTC-8, Matthias Koeppe wrote: > > I would suggest that we aim for a much shorter release cycle for Sage 9.3 > with a focus on the following issues: [...] > - package upgrades [...] > https://trac.sagemath.org/ticket/30611 upgrades various Python package

Re: [sage-devel] Obtain a lattice basis of a linear rational subspace

2020-11-11 Thread David Roe
I think this should do what you need: sage: A = matrix([ : (1, 0, 0, 0, 1/10), : (0, 1, 0, 0, 1/10), : (0, 0, 1, 0, 1/10), : (0, 0, 0, 1, 1/10) : ]) sage: A = (A * A.denominator()).change_ring(ZZ) sage: A.saturation() [10 0 0 0 1] [-1 1 0 0 0] [-1 0 1 0 0]

[sage-devel] Using a Sage kernel in a system Jupyter installation

2020-11-11 Thread Matthias Koeppe
If you know how to do this, please help users by adding instructions to our documentation - https://trac.sagemath.org/ticket/30476 See also - Meta-ticket: https://trac.sagemath.org/ticket/30306 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. T

[sage-devel] Obtain a lattice basis of a linear rational subspace

2020-11-11 Thread 'jonatha...@googlemail.com' via sage-devel
Given rational vectors and consider their linear span. How do I obtain a basis of the ZZ^d-submodule (a basis for the contained lattice points). E.g. given [ (1, 0, 0, 0, 1/10), (0, 1, 0, 0, 1/10), (0, 0, 1, 0, 1/10), (0, 0, 0, 1, 1/10) ] How do I obtain this or something equivalent: [[1, 0,