JuliaGPU / JuliaGPU/ArrayFire.jl
reorder is using zero-based indexing
Open
- Dominant language
- Julia
- Stars
- 207
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
```julia
julia> a = AFArray(Array{Float32}(reshape(1:8,(2,2,2,1))))
AFArray: 2×2×2×1 Array{Float32,4}:
[:, :, 1, 1] =
1.0 3.0
2.0 4.0
[:, :, 2, 1] =
5.0 7.0
6.0 8.0
julia> reorder(a,1,0,2,3)
AFArray: 2×2×2×1 Array{Float32,4}:
[:, :, 1, 1] =
1.0 2.0
3.0 4.0
[:, :, 2, 1] =
5.0 6.0
7.0 8.0
```
Should it use julia 1-based indexing?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.