-
Notifications
You must be signed in to change notification settings - Fork 8
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
Constructor fails to create zero-dimensional StrideArray #28
Comments
I am somewhat new to open source development. I don't know if it is appropriate to open so many issues. Should I instead try to open pull requests? |
Tagging onto this one: also the support of julia> x = StrideArray(zeros(1))
1-element StrideArray{Float64, 1, (1,), Tuple{Int64}, Tuple{Nothing}, Tuple{StaticInt{1}}, Vector{Float64}}:
0.0
julia> y = view(x, 1)
0-dimensional StrideArray{Float64, 0, (), Tuple{}, Tuple{}, Tuple{}, Vector{Float64}}:
0.0
julia> strides(y)
ERROR: MethodError: no method matching _strides_nobit(::Tuple{}, ::Tuple{})
Stacktrace:
[1] _strides_entry(sizes::Tuple{}, strides::Tuple{}, ::Val{()}, ::Val{false})
@ StrideArraysCore ~/.julia/packages/StrideArraysCore/Yyyvt/src/ptr_array.jl:145
[2] static_strides
@ ~/.julia/packages/StrideArraysCore/Yyyvt/src/ptr_array.jl:519 [inlined]
[3] static_strides
@ ~/.julia/packages/StrideArraysCore/Yyyvt/src/stridearray.jl:222 [inlined]
[4] strides(A::StrideArray{Float64, 0, (), Tuple{}, Tuple{}, Tuple{}, Vector{Float64}})
@ StrideArraysCore ~/.julia/packages/StrideArraysCore/Yyyvt/src/ptr_array.jl:610
[5] top-level scope
@ REPL[24]:1 |
Pull requests are more likely to be acted on.
Should probably define a method for |
Zero dimensional stride arrays are somewhat supported:
But when I try to use the constructor, it does not work:
The text was updated successfully, but these errors were encountered: