-
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #18761: method submatrix of matrix_mod2_dense needs default argu…
…ments 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) }}} URL: http://trac.sagemath.org/18761 Reported by: cnassau Ticket author(s): Christian Nassau Reviewer(s): Martin Albrecht
- Loading branch information
Showing
2 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters