Conversation
mat64/symmetric.go
Outdated
There was a problem hiding this comment.
NewSymmetric ... symmetric matrix ...
There was a problem hiding this comment.
Add a test for a panic with ErrShape?
|
PTAL |
mat64/symmetric_test.go
Outdated
There was a problem hiding this comment.
Add a check for matrix equality with a Dense?
mat64/index_no_bound_checks.go
Outdated
There was a problem hiding this comment.
Just curious: why is this version of at() comparing Uplo and blas.Upper, while the other at() does not?
mat64/index_no_bound_checks.go
Outdated
There was a problem hiding this comment.
Move this check to set()? Otherwise bound-checking and non-bound-checking set() behave differently.
|
LGTM We could start using the rebase/squash workflow that is being discussed and see how it pans out. For example this PR could, or even should, be squash to a nice, single commit "Add Symmetric matrix". The subcommits are just noise. |
|
Agreed. Someone will have to walk me through that procedure (not a git master yet). |
mat64/index_bound_checks.go
Outdated
|
LGTM The instructions at the cockroachdb/cockroach CONTRIBUTING page are good: Once ready to land your change, squash your commits. Where n is the number of commits in your branch, run I would then check that you have the history you expect (one commit ahead of master). Note that you can checkout apparently lost commits, the last one in this PR is 7e92d51, so if everything goes pear shaped, you can and then when you are happy you haven't broken everything, |
|
I like the instructions in https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request |
|
Yes, that's nice. Highlights that I forgot about rebasing master. |
|
Any advice on error handling? I followed the instructions in vladimir's link and replaced all of the "pick" with "squash" |
|
I am not sure what exactly you did, so just a couple of questions:
|
|
|
I have a fixed addsym branch I can push to master if you want. It was a bit messy - repeated remerges from master can cause conflicts. |
|
I was just about to write that those problems were probably conflicts. |
|
Yea, I saw that there were merge conflicts. Thanks. Working on making sure I actually have one commit now. |
|
Please update the commit message when you are ready at the moment the commit that would be merged has "Uncommented valid tests and commented invalid tests", which is probably not what we want. There just do a |
|
Thanks for the help. I followed @kortschak comment and merged locally and pushed to master, though I probably should have followed @vladimir-ch 's and pushed to here. It's merged now. Thanks for the --amend reminder. |
|
It looks like we lose the link from the history to the PR. |
|
Something went wrong, I guess. But this is git, everything is fixable. |
|
This is what I would have done to merge this pr: I hope I have made no mistake. |
|
And next time to avoid squashing, I would just amend the last commit and push -f it: And then for merging: |
|
With the above approach github automatically detects that addsym has been merged into master and closes the branch automatically. @btracey , you had to close the branch manually, didn't you? |
|
Yes I did. |
|
And that is why this PR is not linked to the merged commit @kortschak . I am not sure, but maybe the key step is to push -f the squashed and rebased branch to github before pushing the master branch. push.default set to simple is very useful here. |
No description provided.