-
-
Notifications
You must be signed in to change notification settings - Fork 77
Matrix boolean #1029
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
Matrix boolean #1029
Conversation
Overall, this looks good. I think we do need to add POD to this and I would recommend a test file, but I have started one and can add it later. |
d4363f9
to
798abf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good other than the lack of the min
method.
Co-authored-by: Glenn Rice <[email protected]>
I committed your suggestion for doing it directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now!
This can be merged I think. |
This builds on #1012, adding some boolean methods:
isUpperTriangular
,isLowerTriangular
,isDiagonal
,isSymmetric
,isREF
,isRREF
, andisOrthogonal
. In some places, the code could have been shorter and more elegant, but I tried to lean toward efficiency. For example,isSymmetric
could have simply asked if$self == $self->transpose
, but I suspect what is here is a little faster.These will help with custom answer checkers in a linear algebra course. For example asking a student to orthogonally diagonalize a matrix.