public class ModalFftService extends Object implements FftService
FftService
backed by a service provider as well as a pure Java implementation.Constructor and Description |
---|
ModalFftService()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
fft(int[] dims,
double[] in,
double[] out)
Computes a forward transform.
|
String |
getHint(String name)
Gets the value of the given hint.
|
void |
ifft(int[] dims,
double[] in,
double[] out)
Computes a backward transform.
|
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.
|
void |
useJava()
Uses
JavaFftService . |
boolean |
useRegisteredService()
Attempts to use the
FftService obtained from Services.createService(Class) . |
public ModalFftService()
JavaFftService
.public boolean useRegisteredService()
FftService
obtained from Services.createService(Class)
.true
if and only if an implementation could be obtained without resorting to the default service.public void useJava()
JavaFftService
.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.