- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 77
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
transpose degree n matrices #1217
base: develop
Are you sure you want to change the base?
Conversation
Looks good, but we should bring the test suite in soon. There was one in my branch that probably works for a lot of this, but should be update. Although I'm guessing you have a number of problems that you've been testing with, it's more efficient to have the test suite. I can get it working with this branch and put in a PR to this if you'd like. |
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.
I haven't tested this at all yet, but I see some code changes that are needed. Some things that perlcritic pointed out.
Fix typo in Matrix doc and add a test.
e498cd1
to
86611b1
Compare
This builds on #1216 (which builds on #1215). If #1216 is updated following feedback, I will update here too. Once #1216 is merged, this diff should be more manageable.
In addition to changes from #1216, this has:
slice
method for a Matrix object. This produces a degree (n-1) Matrix from a degree n Matrix. You specify an index and a value for that index, and it produces the degree (n-1) Matrix that is thereby defined. This is currently only used as a helper for the update totranspose
. It is similar torow
andcolumn
methods, but more general. And always produces something of the next lower degree.This is the last of the updates I wanted to do before adding new methods for setting elements, removing columns and rows and a submatrix that @pstaabp has in #1076. We should make sure new tools work with degree n Matrix objects as we add them. Unless it is for sure only appropriate for degree 2 matrices.