public abstract class DoublePropagatorGPU
extends java.lang.Object
Constructor and Description |
---|
DoublePropagatorGPU() |
Modifier and Type | Method and Description |
---|---|
abstract void |
diffract(jcuda.driver.CUdeviceptr devField)
Performs numerical diffraction of the complex data in
devField , leaving the result in devField . |
abstract void |
diffract(double[] field)
Performs numerical diffraction of the complex data in
field ,
leaving the result in field . |
public abstract void diffract(double[] field)
field
,
leaving the result in field
. The physical layout of the
complex data must be the same as in JTransforms:
field[i * 2 * N + 2 * j] = Re[i][j],
field[i * 2 * N + 2 * j + 1] = Im[i][j]; 0 <= i < M, 0 <= j < N
field
- The complex field to diffract.public abstract void diffract(jcuda.driver.CUdeviceptr devField)
devField
, leaving the result in devField
.
devField
must be a pointer to the data on the GPU memory.
The physical layout of the complex data must be the same as in
JTransforms:
field[i * 2 * N + 2 * j] = Re[i][j],
field[i * 2 * N + 2 * j + 1] = Im[i][j]; 0 <= i < M, 0 <= j < N
devField
- The complex field to diffract.