Skip to content

Commit 0c48cc2

Browse files
authored
Add TransformFactorization constructors (#74)
* Update bases.jl * Add checkpoints * v0.4.2
1 parent ea70348 commit 0c48cc2

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ContinuumArrays"
22
uuid = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
3-
version = "0.4.1"
3+
version = "0.4.2"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/bases/bases.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,21 @@ _grid(::SubBasisLayout, P) = grid(parent(P))
119119
_grid(::WeightedBasisLayouts, P) = grid(unweightedbasis(P))
120120
grid(P) = _grid(MemoryLayout(typeof(P)), P)
121121

122+
# TODO: Move over from OrthogonalPolynomialsQuasi
123+
function checkpoints end
124+
122125
struct TransformFactorization{T,Grid,Plan,IPlan} <: Factorization{T}
123126
grid::Grid
124127
plan::Plan
125128
iplan::IPlan
126129
end
127130

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

131134

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

135138
grid(T::TransformFactorization) = T.grid
136139

0 commit comments

Comments
 (0)