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
add zero_matrix constructor. #2299
Comments
comment:1
Attachment: 2299-ncalexan-zero-matrix-1.patch.gz You replaced "n x n" by "$n \times n$" which reads nicer if typesetted. However, it is harder to comprehend from the command line ( I am not sure that we need |
comment:2
I really want As for latex in docstrings... I don't care either way. I think it should be latex but I parse simple latex from tex without trouble. |
comment:3
Just a quick remark. You can make a zero matrix using the matrix function:
I don't think that's a good reason not to add zero_matrix and identity_matrix |
comment:4
I think zero_ and identity_ declare programmer intent nicely. Will someone say positive or negative and this either goes to the bit-bucket or gets applied? |
comment:5
REFEREE REPORT: I definitely think these functions should go in, but with TWO caveats.
works.
-- William |
Attachment: 2299-ncalexan-zero-matrix-2.patch.gz |
comment:7
I generated this patch using hg diff between two revisions, not hg export. Let me know if it's not okay. |
comment:8
Works for me in 2.10.3.alpha0. Note that only the last patch should be apply and that it is a "raw" patch. |
Attachment: 2299.patch.gz |
comment:10
Merged 2299.patch in Sage 2.10.3.rc0 |
This adds the
zero_matrix
convenience constructor, just likeidentity_matrix
.CC: @ncalexan
Component: linear algebra
Keywords: zero matrix identity one
Issue created by migration from https://trac.sagemath.org/ticket/2299
The text was updated successfully, but these errors were encountered: