[sage-devel] Re: floor division for integer matrices

2017-11-01 Thread Travis Scrimshaw
On Thursday, November 2, 2017 at 8:30:59 AM UTC+10, Simon King wrote: > > On 2017-11-01, David Roe > wrote: > > I don't think you're missing anything, and I would support adding this > > feature to matrices. > > I wouldn't support it. > > If you have an integral domain R, then the quotient x/

Re: [sage-devel] Giac fails to build

2017-11-01 Thread Han Frederic
Le vendredi 20 octobre 2017 05:38:57 UTC+2, Timo Kaufmann a écrit : > > After adding one more depencency (hevea) the compilation succeeds. Thank > you for your help. > > It needs quite some dependencies that are not mentioned on the README's > instructions though (like hevea and texlive). Are t

[sage-devel] Re: floor division for integer matrices

2017-11-01 Thread Simon King
On 2017-11-01, David Roe wrote: > I don't think you're missing anything, and I would support adding this > feature to matrices. I wouldn't support it. If you have an integral domain R, then the quotient x/y for x,y in R will live in the fraction field of R, whereas floor division x//y (I think)

Re: [sage-devel] floor division for integer matrices

2017-11-01 Thread David Roe
I don't think you're missing anything, and I would support adding this feature to matrices. David On Wed, Nov 1, 2017 at 5:36 PM, Simon Brandhorst wrote: > sage: A = Matrix(ZZ,2,[3,3,3,3]) > sage: A > [3 3] > [3 3] > sage: A//3 > > ---

[sage-devel] floor division for integer matrices

2017-11-01 Thread Simon Brandhorst
sage: A = Matrix(ZZ,2,[3,3,3,3]) sage: A [3 3] [3 3] sage: A//3 --- TypeError Traceback (most recent call last) ... TypeError: unsupported operand parent(s) for //: 'Full MatrixSpace of 2 by 2