Open
Conversation
804312a to
a590fc9
Compare
Member
|
Could a test be added for this? |
Comment on lines
+2162
to
+2163
| i = 1 | ||
| j = 1 |
Member
There was a problem hiding this comment.
Suggested change
| i = 1 | |
| j = 1 | |
| i::Int = 1 | |
| j::Int = 1 |
| k += 1 | ||
| i = 1 | ||
| j = 1 | ||
| ntuple(Val(len)) do k |
Member
There was a problem hiding this comment.
I think if we want to unroll this the standard way would be a generated function using @nexprs. We also might want to separate the homogeneous tuple case to still use a loop?
Member
|
@wsmoses would you be willing / able to add a test as requested? Also unfortunately this now has a merge conflict... |
211f1bb to
a7ff4b1
Compare
Member
|
@wsmoses Are you still working on this? |
Member
|
spiritually replaced by #61426 if anybody would be interested in reviewing that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Presently hvcat_fill is type unstable if the input tuple does not contain values of the same type.
This changes the iteration index to be of the tuple itself (permitting unrolling) and therefore type stabilization.
It would be really nice to have this backported to 1.10 before release (and other Julia's too, if possible).
Before this change it would behave like this: