Skip to content

Commit 1fd17ca

Browse files
author
ioannisPApapadopoulos
committed
size of plans
1 parent b17e76d commit 1fd17ca

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/arrays.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ struct ArrayPlan{T, FF<:FTPlan{<:T}, Szs<:Tuple, Dims<:Tuple{<:Int}} <: Plan{T}
44
dims::Dims
55
end
66
size(P::ArrayPlan) = P.szs
7-
size(P::ArrayPlan, k::Int) = P.szs[k]
8-
size(P::ArrayPlan, k...) = P.szs[[k...]]
97

108
function ArrayPlan(F::FTPlan{<:T}, c::AbstractArray{T}, dims::Tuple{<:Int}=(1,)) where T
119
szs = size(c)
@@ -54,8 +52,6 @@ struct NDimsPlan{T, FF<:ArrayPlan{<:T}, Szs<:Tuple, Dims<:Tuple} <: Plan{T}
5452
end
5553

5654
size(P::NDimsPlan) = P.szs
57-
size(P::NDimsPlan, k::Int) = P.szs[k]
58-
size(P::NDimsPlan, k...) = P.szs[[k...]]
5955

6056
function NDimsPlan(F::FTPlan, szs::Tuple, dims::Tuple)
6157
NDimsPlan(ArrayPlan(F, szs, (first(dims),)), szs, dims)

test/arraystests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import FastTransforms: ArrayPlan, NDimsPlan
88
FT = ArrayPlan(F, c)
99

1010
@test size(FT) == size(c)
11-
@test size(FT,1) == size(c,1)
12-
@test size(FT,1,2) == (size(c,1), size(c,2))
1311

1412
f = similar(c);
1513
for k in axes(c,3)
@@ -43,8 +41,6 @@ import FastTransforms: ArrayPlan, NDimsPlan
4341
P = NDimsPlan(FT, size(c), (1,2))
4442

4543
@test size(P) == size(c)
46-
@test size(P,1) == size(c,1)
47-
@test size(P,1,2) == (size(c,1), size(c,2))
4844

4945
f = similar(c);
5046
for k in axes(f,3)

0 commit comments

Comments
 (0)