We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed41cf commit 1eae0d7Copy full SHA for 1eae0d7
base/reducedim.jl
@@ -44,7 +44,7 @@ function reduced_indices0(inds::Indices{N}, d::Int) where N
44
end
45
46
function reduced_indices(inds::Indices{N}, region) where N
47
- rinds = [inds...]
+ rinds = collect(inds)
48
for i in region
49
isa(i, Integer) || throw(ArgumentError("reduced dimension(s) must be integers"))
50
d = Int(i)
@@ -58,7 +58,7 @@ function reduced_indices(inds::Indices{N}, region) where N
58
59
60
function reduced_indices0(inds::Indices{N}, region) where N
61
62
63
64
0 commit comments