public class JavaFftService extends Object implements FftService
FftService
implementation in pure Java.Constructor and Description |
---|
JavaFftService()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
fft(int[] dims,
double[] in,
double[] out)
Computes a forward transform.
|
ComplexArray |
fullToReduced(ComplexArray full)
Derives a reduced, half-complex
ComplexArray from a full ComplexArray . |
String |
getHint(String name)
Gets the value of the given hint.
|
void |
ifft(int[] dims,
double[] in,
double[] out)
Computes a backward transform.
|
ComplexArray |
reducedToFull(ComplexArray reduced,
int[] logicalDims)
Derives a full
ComplexArray from a reduced, half-complex ComplexArray . |
void |
rfft(int[] dims,
double[] in,
double[] out)
Computes a reduced forward transform.
|
void |
rifft(int[] dims,
double[] in,
double[] out)
Computes a reduced backward transform.
|
void |
setHint(String name,
String value)
Sets the value of the given hint.
|
public void rfft(int[] dims, double[] in, double[] out)
FftService
rfft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void rifft(int[] dims, double[] in, double[] out)
FftService
rifft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void fft(int[] dims, double[] in, double[] out)
FftService
fft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void ifft(int[] dims, double[] in, double[] out)
FftService
ifft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void setHint(String name, String value)
FftService
setHint
in interface FftService
name
- the hint name.value
- the value.public String getHint(String name)
FftService
getHint
in interface FftService
name
- the hint name.public ComplexArray reducedToFull(ComplexArray reduced, int[] logicalDims)
ComplexArray
from a reduced, half-complex ComplexArray
.reduced
- the reduced array.logicalDims
- the logical RealArray
dimensions.public ComplexArray fullToReduced(ComplexArray full)
ComplexArray
from a full ComplexArray
.full
- the full array.