示例#1
0
// 	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])
	}
}
示例#2
0
// 	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])
	}
}