News for hackers. Stuff that matters.
Re:Julia 1.0 by kmm on Thursday August 09, 2018 @11:37AM (#17725104)
In my experience, 0-based indexing is way more common in mathematics. Maybe it depends on the field you're working in. Off the top of my head, dimensions are numbered from zero in relativity and particle physics, Fourier series only make sense with 0-based indexing, coefficients of polynomials are numbered from zero, Taylor series, indexing by taking the modulo ...
Re:Julia 1.0 by simonbyrne on Thursday August 09, 2018 @11:59AM (#17725321)
A slight quibble: FFTs are more naturally indexed periodically. Luckily, Julia has that covered: https://github.com/JuliaArrays/FFTViews.jl