-
Notifications
You must be signed in to change notification settings - Fork 150
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
Failure to reinterpret SMatrix #1201
Comments
It works if you provide all arguments to A = zeros(SMatrix{3,3,Float64,9}, 2, 3) Note that without julia> isbitstype(eltype(A))
false |
Thanks! I agree this is user error, feel free to close the issue. I wonder, however, if there is some way to print a more informative error message? Something along the lines of "missing 4th type parameter". |
I guess we could use |
Thanks. Is there a valid use case for |
You can use the three-parameter variant for constructing julia> SMatrix{2,2,Float64}(1, 2, 3, 4)
2×2 SMatrix{2, 2, Float64, 4} with indices SOneTo(2)×SOneTo(2):
1.0 3.0
2.0 4.0 Here we have an issue of |
Is this expected behavior? Tested on [email protected].
The text was updated successfully, but these errors were encountered: