-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Type inference for cat #5339
Comments
Could use a macro, same as we do for |
A macro is an interesting idea, but I'm not sure how we'd implement it. The dimensionality is |
You could do the same sort of pseudo-typing that NumericExtensions does with its functors, couldn't you? E.g., |
Even if you encapsulate |
Related PR at #45028. |
Fixed by #45028, thanks for mentioning this issue on the PR, @rikhuijzer ! |
The return type of
cat
is determined by the value of thedim
argument as well as the types of the inputs, which means we can't infer the dimensionality of the returned array. OTOHdim
is usually constant, so we usually have all of the information necessary to determine the return type at compile time, just not in a way that type inference can use. What is the best approach here?The text was updated successfully, but these errors were encountered: