JuliaArrays / AxisArrays.jl

Performant arrays where each dimension can have a named axis with values
http://JuliaArrays.github.io/AxisArrays.jl/latest/
Other
200 stars 42 forks source link

Use step(r) instead of r.step... #77

Closed mbauman closed 7 years ago

mbauman commented 7 years ago

when constructing StepRangeLen objects. This came up when using the new LinSpace objects -- their r.step is a DoublePrecision, which causes all sorts of downstream promotion/interaction problems. step(r) returns the ordinary precision number I expected. The fact that we this currently has r.step and step(s) immediately juxtaposed makes me think that using the field directly was intentional... but nothing breaks.