@@ -14,11 +14,7 @@ immutable NUFFTPlan{N,T,FFT} <: Base.DFT.Plan{T}
14
14
end
15
15
16
16
doc"""
17
- Pre-computes a nonuniform fast Fourier transform of type I:
18
-
19
- ```math
20
- f_j = \s um_{k=1}^N c_k e^{-2\p i{\r m i} (j-1)/N \o mega_k},\q uad{\r m for}\q uad 1 \l e j \l e N.
21
- ```
17
+ Pre-computes a nonuniform fast Fourier transform of type I.
22
18
"""
23
19
function plan_nufft1 {T<:AbstractFloat} (ω:: AbstractVector{T} , ϵ:: T )
24
20
N = length (ω)
@@ -37,11 +33,7 @@ function plan_nufft1{T<:AbstractFloat}(ω::AbstractVector{T}, ϵ::T)
37
33
end
38
34
39
35
doc"""
40
- Pre-computes a nonuniform fast Fourier transform of type II:
41
-
42
- ```math
43
- f_j = \s um_{k=1}^N c_k e^{-2\p i{\r m i} x_j (k-1)},\q uad{\r m for}\q uad 1 \l e j \l e N.
44
- ```
36
+ Pre-computes a nonuniform fast Fourier transform of type II.
45
37
"""
46
38
function plan_nufft2 {T<:AbstractFloat} (x:: AbstractVector{T} , ϵ:: T )
47
39
N = length (x)
@@ -59,11 +51,7 @@ function plan_nufft2{T<:AbstractFloat}(x::AbstractVector{T}, ϵ::T)
59
51
end
60
52
61
53
doc"""
62
- Pre-computes a nonuniform fast Fourier transform of type III:
63
-
64
- ```math
65
- f_j = \s um_{k=1}^N c_k e^{-2\p i{\r m i} x_j \o mega_k},\q uad{\r m for}\q uad 1 \l e j \l e N.
66
- ```
54
+ Pre-computes a nonuniform fast Fourier transform of type III.
67
55
"""
68
56
function plan_nufft3 {T<:AbstractFloat} (x:: AbstractVector{T} , ω:: AbstractVector{T} , ϵ:: T )
69
57
N = length (x)
@@ -185,17 +173,29 @@ function recombine_rows!{T}(temp::Matrix{T}, t::Vector{Int}, temp2::Matrix{T})
185
173
end
186
174
187
175
doc"""
188
- Computes a nonuniform fast Fourier transform of type I.
176
+ Computes a nonuniform fast Fourier transform of type I:
177
+
178
+ ```math
179
+ f_j = \s um_{k=1}^N c_k e^{-2\p i{\r m i} (j-1)/N \o mega_k},\q uad{\r m for}\q uad 1 \l e j \l e N.
180
+ ```
189
181
"""
190
182
nufft1 {T<:AbstractFloat} (c:: AbstractVector , ω:: AbstractVector{T} , ϵ:: T ) = plan_nufft1 (ω, ϵ)* c
191
183
192
184
doc"""
193
- Computes a nonuniform fast Fourier transform of type II.
185
+ Computes a nonuniform fast Fourier transform of type II:
186
+
187
+ ```math
188
+ f_j = \s um_{k=1}^N c_k e^{-2\p i{\r m i} x_j (k-1)},\q uad{\r m for}\q uad 1 \l e j \l e N.
189
+ ```
194
190
"""
195
191
nufft2 {T<:AbstractFloat} (c:: AbstractVector , x:: AbstractVector{T} , ϵ:: T ) = plan_nufft2 (x, ϵ)* c
196
192
197
193
doc"""
198
- Computes a nonuniform fast Fourier transform of type III.
194
+ Computes a nonuniform fast Fourier transform of type III:
195
+
196
+ ```math
197
+ f_j = \s um_{k=1}^N c_k e^{-2\p i{\r m i} x_j \o mega_k},\q uad{\r m for}\q uad 1 \l e j \l e N.
198
+ ```
199
199
"""
200
200
nufft3 {T<:AbstractFloat} (c:: AbstractVector , x:: AbstractVector{T} , ω:: AbstractVector{T} , ϵ:: T ) = plan_nufft3 (x, ω, ϵ)* c
201
201
0 commit comments