JuliaSIMD / JuliaSIMD/StrideArraysCore.jl
Constructor fails to create zero-dimensional StrideArray
Open
- Dominant language
- Julia
- Stars
- 19
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Zero dimensional stride arrays are somewhat supported:
```
julia> x = StrideArray(zeros(1))
1-element StrideArray{Float64, 1, (1,), Tuple{Int64}, Tuple{Nothing}, Tuple{StaticInt{1}}, Vector{Float64}}:
0.0
julia> view(x, 1)
0-dimensional StrideArray{Float64, 0, (), Tuple{}, Tuple{}, Tuple{}, Vector{Float64}}:
0.0
```
But when I try to use the constructor, it does not work:
```
julia> StrideArray(zeros())
ERROR: ArgumentError: Cannot call tail on an empty tuple.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.