Skip to content

Commit f39b067

Browse files
committed
Update plans.jl
1 parent 89ad47e commit f39b067

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plans.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct InvPlan{T, Facts<:Tuple, Pln, Dims} <: Plan{T}
3737
dims::Dims
3838
end
3939

40-
InvPlan(fact::Tuple, plan, dims) = InvPlan{eltype(fact), typeof(fact), typeof(plan), typeof(dims)}(fact, dims)
40+
InvPlan(fact::Tuple, plan, dims) = InvPlan{mapreduce(eltype,promote_type,fact), typeof(fact), typeof(plan), typeof(dims)}(fact, plan, dims)
4141
InvPlan(fact::Tuple, dims) = InvPlan(fact, nothing, dims)
4242
InvPlan(fact, dims...) = InvPlan((fact,), dims...)
4343

@@ -55,7 +55,7 @@ struct MulPlan{T, Fact<:Tuple, Pln, Dims} <: Plan{T}
5555
dims::Dims
5656
end
5757

58-
MulPlan(mats::Tuple, plan, dims) = MulPlan{eltype(mats), typeof(mats), typeof(plan), typeof(dims)}(mats, plan, dims)
58+
MulPlan(mats::Tuple, plan, dims) = MulPlan{mapreduce(eltype,promote_type,mats), typeof(mats), typeof(plan), typeof(dims)}(mats, plan, dims)
5959
MulPlan(mats::Tuple, dims) = MulPlan(mats, nothing, dims)
6060
MulPlan(mats::AbstractMatrix, dims...) = MulPlan((mats,), dims...)
6161

@@ -123,7 +123,7 @@ for (Pln,op,fld) in ((:MulPlan, :*, :(:matrices)), (:InvPlan, :\, :(:factorizati
123123

124124

125125

126-
*(P::$Pln{<:Any,<:Tuple,Int}, X::AbstractArray) = error("Overload")
126+
*(P::$Pln{<:Any,<:Tuple,<:Any,Int}, X::AbstractArray) = error("Overload")
127127

128128
function *(P::$Pln, Xin::AbstractArray)
129129
X = _transformifnotnothing(P.plan, Xin)

0 commit comments

Comments
 (0)