@@ -37,7 +37,7 @@ struct InvPlan{T, Facts<:Tuple, Pln, Dims} <: Plan{T}
3737 dims:: Dims
3838end
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)
4141InvPlan (fact:: Tuple , dims) = InvPlan (fact, nothing , dims)
4242InvPlan (fact, dims... ) = InvPlan ((fact,), dims... )
4343
@@ -55,7 +55,7 @@ struct MulPlan{T, Fact<:Tuple, Pln, Dims} <: Plan{T}
5555 dims:: Dims
5656end
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)
5959MulPlan (mats:: Tuple , dims) = MulPlan (mats, nothing , dims)
6060MulPlan (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