Skip to content

Commit 36fa310

Browse files
authored
reduce(max instead of maximum (#216)
1 parent abed5ff commit 36fa310

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.7.10"
3+
version = "0.7.11"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Multivariate/TensorSpace.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ for (plan, plan!, Typ) in ((:plan_transform, :plan_transform!, :TransformPlan),
346346
@eval function $f(S::TensorSpace{<:NTuple{N,Space}}, A::AbstractArray{<:Any,N}) where {N}
347347
spaces = S.spaces
348348
tempv = similar(A, size(A,1))
349-
sizehint!(tempv, maximum(size(A), init=0))
349+
sizehint!(tempv, reduce(max, size(A), init=0))
350350
plans = ntuple(N) do dim
351351
szdim = size(A,dim)
352352
resize!(tempv, szdim)
@@ -381,7 +381,7 @@ for (plan, plan!, Typ) in ((:plan_transform, :plan_transform!, :TransformPlan),
381381
throw(ArgumentError("size of array is incompatible with transform plan"))
382382

383383
tempv = similar(A, size(A,1))
384-
sizehint!(tempv, maximum(size(A), init=0))
384+
sizehint!(tempv, reduce(max, size(A), init=0))
385385
for dim in 1:N
386386
Rpre = CartesianIndices(axes(A)[1:dim-1])
387387
Rpost = CartesianIndices(axes(A)[dim+1:end])

0 commit comments

Comments
 (0)