Skip to content

Commit

Permalink
Fixed type for fft_l! and fft_r! fields of FFTOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
david-pl committed Jan 18, 2018
1 parent b881d09 commit cd8abdd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/particle.jl
Expand Up @@ -216,6 +216,8 @@ Abstract type for all implementations of FFT operators.
"""
abstract type FFTOperator <: Operator end

PlanFFT = Base.DFT.FFTW.cFFTWPlan

"""
FFTOperators
Expand All @@ -225,10 +227,10 @@ that is a Ket or an Operator.
type FFTOperators <: FFTOperator
basis_l::Basis
basis_r::Basis
fft_l!
fft_r!
fft_l2!
fft_r2!
fft_l!::PlanFFT
fft_r!::PlanFFT
fft_l2!::PlanFFT
fft_r2!::PlanFFT
mul_before::Array{Complex128}
mul_after::Array{Complex128}
end
Expand All @@ -242,8 +244,8 @@ This is much more memory efficient when only working with Kets.
type FFTKets <: FFTOperator
basis_l::Basis
basis_r::Basis
fft_l!
fft_r!
fft_l!::PlanFFT
fft_r!::PlanFFT
mul_before::Array{Complex128}
mul_after::Array{Complex128}
end
Expand Down

0 comments on commit cd8abdd

Please sign in to comment.