JuliaArrays/OffsetArrays.jl
View on GitHub ↗ ★ 212 Julia
Fortran-like arrays with arbitrary, zero or negative starting indices.
16 mentions on Hacker News by 14 people: 0 stories, 16 comments · first 2017-06-23 · latest 2022-05-19
20082026
-
…`--check-bounds=yes` is probably a better solution, and much quicker to execute as well. (see e.g. https://github.com/JuliaArrays/OffsetArrays.jl/issues/282 )
comment by garrison · 2022-05-19 · in Correctness and composability bugs in the Julia ecosystem -
…Fortran) have a concept called offset arrays where you can basically start on any sort of index: https://github.com/JuliaArrays/OffsetArrays.jl IMHO, one of the biggest advantages of Julia _is_ arrays.
comment by fault1 · 2021-11-27 · in PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly) -
…are better, sometimes an index is better. If you really want 0-based indexing, you can have it! https://github.com/JuliaArrays/OffsetArrays.jl My own preference is random indexing, it's so much more exciting to be surprised…
comment by kescobo · 2021-05-11 · in Pyre: A performant type-checker for Python 3 -
…implement arrays with different indexing schemes that have the same performance as built-in arrays: https://github.com/JuliaArrays/OffsetArrays.jl
comment by SatvikBeri · 2021-02-13 · in Swift for TensorFlow Shuts Down -
…custom indices by default. Check out https://docs.julialang.org/en/v1/devdocs/offset-arrays/ and https://github.com/JuliaArrays/OffsetArrays.jl
comment by sc11 · 2021-01-27 · in Evcxr: A Rust REPL and Jupyter Kernel -
…focus on generic code, these custom array types are basically first class citizens. See for example https://github.com/JuliaArrays/OffsetArrays.jl Almost every serious julia package is written in such a way that they can handle such arrays…
comment by eigenspace · 2021-01-19 · in Again on 0-based vs. 1-based indexing -
…they've done pretty well so far. https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E... https://github.com/JuliaArrays/OffsetArrays.jl
comment by kortex · 2020-10-10 · in The unreasonable effectiveness of the Julia programming language -
This is something that's really nicely supported in Julia: https://github.com/JuliaArrays/OffsetArrays.jl
comment by eigenspace · 2019-10-31 · in Functional Fortran -
…with your bare hands like you're in C. And is good style anyway, to be generic to things like https://github.com/JuliaArrays/OffsetArrays.jl
comment by mcabbott · 2019-01-23 · in Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software -
…way to index an array. Yes, Julia defaults to 1-based indexing, and allows zero-based indexing ( https://github.com/JuliaArrays/OffsetArrays.jl ) or indeed whatever sort of indexing you want, yet I think the world is going to eventually…
comment by chrispeel · 2018-08-16 · in Why numbering should start at zero (1982) -
…no overhead over the default arrays according to recent benchmarks, and provides 0-indexed arrays: https://github.com/JuliaArrays/OffsetArrays.jl I confess, not being the default is a big thing. I've definitely had times where I thought…
comment by chriselrod · 2018-08-08 · in Julia v1.0 has been released -
If you have a particular algorithm that is better expressed using 0-based indexing use https://github.com/JuliaArrays/OffsetArrays.jl
comment by wallnuss · 2017-10-14 · in Some Insights from a Julia Developer -
…of Julia is written in Julia. If you want 0-based (or arbitrary based!) arrays, then simply use the https://github.com/JuliaArrays/OffsetArrays.jl package, and PermutedDimArrays have been added to Base, to handle some of the issues of…
comment by ScottPJones · 2017-06-23 · in Julia Computing Raises $4.6M in Seed Funding