Skip to content

Commit 3d0df02

Browse files
committed
Update bases.jl
1 parent ea70348 commit 3d0df02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bases/bases.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ struct TransformFactorization{T,Grid,Plan,IPlan} <: Factorization{T}
125125
iplan::IPlan
126126
end
127127

128-
TransformFactorization(grid, plan) =
129-
TransformFactorization{promote_type(eltype(grid),eltype(plan)),typeof(grid),typeof(plan),Nothing}(grid, plan, nothing)
128+
TransformFactorization{T}(grid, plan) where T = TransformFactorization{T,typeof(grid),typeof(plan),Nothing}(grid, plan, nothing)
129+
TransformFactorization(grid, plan) = TransformFactorization{promote_type(eltype(eltype(grid)),eltype(plan))}(grid, plan)
130130

131131

132-
TransformFactorization(grid, ::Nothing, iplan) =
133-
TransformFactorization{promote_type(eltype(grid),eltype(iplan)),typeof(grid),Nothing,typeof(iplan)}(grid, nothing, iplan)
132+
TransformFactorization{T}(grid, ::Nothing, iplan) where T = TransformFactorization{T,typeof(grid),Nothing,typeof(iplan)}(grid, nothing, iplan)
133+
TransformFactorization(grid, ::Nothing, iplan) = TransformFactorization{promote_type(eltype(eltype(grid)),eltype(iplan))}(grid, nothing, iplan)
134134

135135
grid(T::TransformFactorization) = T.grid
136136

0 commit comments

Comments
 (0)