New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py3: future division in matrix2 #23731
Comments
Branch: u/chapoton/23731 |
Commit: |
New commits:
|
Reviewer: André Apitzsch |
comment:3
LGTM. |
comment:4
I disagree here: why hard-code @@ -1371,7 +1372,7 @@ cdef class Matrix(Matrix1):
# now compute the permanental minor of the complement matrix if needed
if complement:
a = [one]
- c1 = 1
+ c1 = QQ.one()
for k in range(1, mn + 1):
c1 = c1*(m-k+1)*(n-k+1)/k
c = c1 |
comment:5
Because for this precise variable, we can stay in QQ. Otherwise, more complicated computations are done. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
So, what about the new commit ? The first // makes sense (binomial coefficients) but i would not swear that the second one does make sense too. New commits:
|
Changed reviewer from André Apitzsch to André Apitzsch, Jeroen Demeyer |
Changed branch from u/chapoton/23731 to |
Changed commit from |
Changed keywords from none to division |
part of #15995
found using the "python -3" tests suggested there
Component: python3
Keywords: division
Author: Frédéric Chapoton
Branch:
fdf0a68
Reviewer: André Apitzsch, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/23731
The text was updated successfully, but these errors were encountered: