// INTERNAL // Sparse backtransform // (FFTPlan knows about zero padding etc) func (plan *MaxwellPlan) InverseFFT(out *gpu.Array) { Assert(plan.fftBuf.NComp() == out.NComp()) for c := range out.Comp { plan.fftPlan.Inverse(&plan.fftBuf.Comp[c], &out.Comp[c]) } }
// INTERNAL // Sparse transform all 3 components. // (FFTPlan knows about zero padding etc) func (plan *MaxwellPlan) ForwardFFT(in *gpu.Array) { Assert(plan.fftBuf.NComp() == in.NComp()) for c := range in.Comp { plan.fftPlan.Forward(&in.Comp[c], &plan.fftBuf.Comp[c]) } }