Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since indexing into a weight vector in turn indexes into its vector of values, the optimal index style for a weight vector is the same as that of its values. Currently it uses the default `IndexCartesian` since no more specific `IndexStyle` method is defined. Before this commit: ``` julia> eachindex(1:3, weights(1:3)) 3-element CartesianIndices{1, Tuple{Base.OneTo{Int64}}}: CartesianIndex(1,) CartesianIndex(2,) CartesianIndex(3,) ``` After: ``` julia> eachindex(1:3, weights(1:3)) Base.OneTo(3) ```
- Loading branch information