1
- const ArrayIndices{N} = Iterators . ProductIterator {NTuple{N, Base. OneTo{Int}}}
1
+ const ArrayIndices{N} = VectorizedProductIterator {NTuple{N, Base. OneTo{Int}}}
2
2
container (f:: Function , indices) = container (f, indices, default_container (indices))
3
3
default_container (:: ArrayIndices ) = Array
4
4
function container (f:: Function , indices:: ArrayIndices , :: Type{Array} )
@@ -10,14 +10,14 @@ function _oneto(indices)
10
10
end
11
11
error (" Index set for array is not one-based interval." )
12
12
end
13
- function container (f:: Function , indices:: Iterators.ProductIterator ,
13
+ function container (f:: Function , indices:: VectorizedProductIterator ,
14
14
:: Type{Array} )
15
- container (f, Iterators . ProductIterator (_oneto .(indices. iterators)), Array)
15
+ container (f, vectorized_product (_oneto .(indices. prod . iterators)... ), Array)
16
16
end
17
- default_container (:: Iterators.ProductIterator ) = DenseAxisArray
18
- function container (f:: Function , indices:: Iterators.ProductIterator ,
17
+ default_container (:: VectorizedProductIterator ) = DenseAxisArray
18
+ function container (f:: Function , indices:: VectorizedProductIterator ,
19
19
:: Type{DenseAxisArray} )
20
- return DenseAxisArray (map (I -> f (I... ), indices), indices. iterators... )
20
+ return DenseAxisArray (map (I -> f (I... ), indices), indices. prod . iterators... )
21
21
end
22
22
default_container (:: NestedIterator ) = SparseAxisArray
23
23
function container (f:: Function , indices,
0 commit comments