Skip to content

Commit 52dcdcd

Browse files
authored
non-tuple length/block for plan_grid_transform (#159)
* non-tuple length/block for plan_grid_transform * add test * Update Project.toml
1 parent 642ec0b commit 52dcdcd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
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.15"
3+
version = "0.15.1"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -36,7 +36,7 @@ FillArrays = "1.0"
3636
InfiniteArrays = "0.12, 0.13"
3737
Infinities = "0.1"
3838
IntervalSets = "0.7"
39-
LazyArrays = "1.0"
39+
LazyArrays = "1.6.1"
4040
Makie = "0.19"
4141
QuasiArrays = "0.11.1"
4242
RecipesBase = "1.0"

src/bases/bases.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ end
189189

190190
plan_grid_transform(L, szs::NTuple{N,Int}, dims=1:N) where N = plan_grid_transform(MemoryLayout(L), L, szs, dims)
191191

192-
plan_grid_transform(L, arr::AbstractArray{<:Any,N}, dims=1:N) where N =
193-
plan_grid_transform(L, size(arr), dims)
192+
plan_grid_transform(L, arr::AbstractArray, dims...) = plan_grid_transform(L, size(arr), dims...)
193+
plan_grid_transform(L, lng::Union{Integer,Block{1}}, dims...) = plan_grid_transform(L, (lng,), dims...)
194194

195195
plan_transform(P, szs, dims...) = plan_grid_transform(P, szs, dims...)[2]
196196

test/test_splines.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ import ContinuumArrays: basis, AdjointBasisLayout, ExpansionLayout, BasisLayout,
441441
x = Inclusion(0..1)
442442
y = 2x .- 1
443443
L = LinearSpline(range(-1,stop=1,length=10))
444-
g,P = plan_grid_transform(L[y,:], (10,))
444+
g,P = plan_grid_transform(L[y,:], 10)
445445
X = cos.(g)
446446
@test L[y,:][g,:] * (P * X) X
447447
@test P \ (P * X) P * (P \ X) X

0 commit comments

Comments
 (0)