Skip to content

Conversation

@mfalt
Copy link
Contributor

@mfalt mfalt commented Oct 1, 2018

Should solve issue of cat with matrices with zero sizes, see: #29456

I tried to catch as many corner cases as possible, should the tests be in a separate testset for the issue?

for i = 1:nr
nci = 0
rows[i] > 0 && n[j+1] == 0 && continue # column count unknown in this row
rows[i] > 0 && n[j+1] == -1 && (j += rows[i]; continue)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should have been some kind of bug here previously, but I can't figure out how.

@mfalt
Copy link
Contributor Author

mfalt commented Oct 3, 2018

The tests passed on travis, not sure why it shows up as pending.
Does anyone have any comments on the issue or PR?

@KristofferC
Copy link
Member

Sometimes the Travis test success notification doesn't propagate to the GitHub window. Seems to happen more often recently.

Looks good to me, great that you added so many extra tests.

@KristofferC KristofferC added bugfix This change fixes an existing bug backport pending 1.0 labels Oct 3, 2018
@KristofferC KristofferC merged commit 4093dbf into JuliaLang:master Oct 19, 2018
KristofferC pushed a commit that referenced this pull request Oct 29, 2018
* Uniform scaling cat with zero dimensions

* Missing type assertion in test

(cherry picked from commit 4093dbf)
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
* Uniform scaling cat with zero dimensions

* Missing type assertion in test

(cherry picked from commit 4093dbf)
KristofferC pushed a commit that referenced this pull request Feb 20, 2020
* Uniform scaling cat with zero dimensions

* Missing type assertion in test

(cherry picked from commit 4093dbf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This change fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants