#18761: method submatrix of matrix_mod2_dense needs default arguments
------------------------------+--------------------------------------------
Reporter: cnassau | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.8
Component: linear algebra | Keywords: dense matrix, sub matrix
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------------+--------------------------------------------
The `submatrix` methods for dense matrices mod 2^e^ have a different
signature than the other `submatrix` methods; the latter treat their last
two arguments as optional. This leads to errors like this (from
6.8.beta5):
{{{
sage: d0=matrix(GF(2),[[1, 1], [1, 1], [1, 1], [1, 1]])
sage:
d0._echelon_form_PID()---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
...
TypeError: submatrix() takes exactly 4 positional arguments (2 given)
}}}
or this
{{{
sage: d0=matrix(GF(2),[[1, 1], [1, 1], [1, 1], [1, 1]])
sage: d1=matrix(GF(2),[[1, 1, 0, 0],
[1, 1, 0, 0],
[1, 1, 1, 1],
[1, 1, 1, 1],
[0, 0, 1, 1],
[0, 0, 1, 1]]
)
sage: C=ChainComplex(data=(d0,d1))
sage: C.homology(1,generators=True)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
...
TypeError: submatrix() takes exactly 4 positional arguments (2 given)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18761>
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.