本文整理了Java中org.nd4j.linalg.factory.Nd4j.getFFt()
方法的一些代码示例,展示了Nd4j.getFFt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nd4j.getFFt()
方法的具体详情如下:
包路径:org.nd4j.linalg.factory.Nd4j
类名称:Nd4j
方法名:getFFt
[英]Returns the fft instance
[中]返回fft实例
代码示例来源:origin: org.nd4j/nd4j-api
/**
* 1d discrete fourier op, note that this will
* throw an exception if the passed in input
* isn't a vector.
* See matlab's fft2 for more information
*
* @param inputC the input to op
* @return the the discrete fourier op of the passed in input
*/
public static IComplexNDArray ifft(IComplexNDArray inputC) {
return Nd4j.getFFt().ifft(inputC);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* 1d discrete fourier op, note that this will
* throw an exception if the passed in input
* isn't a vector.
* See matlab's fft2 for more information
*
* @param inputC the input to op
* @return the the discrete fourier op of the passed in input
*/
public static IComplexNDArray fft(IComplexNDArray inputC) {
return Nd4j.getFFt().fft(inputC);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* IFFT along a particular dimension
*
* @param transform the ndarray to op
* @param numElements the desired number of elements in each fft
* @param dimension the dimension to do fft along
* @return the iffted output
*/
public static IComplexNDArray ifft(INDArray transform, int numElements, int dimension) {
return Nd4j.getFFt().ifft(transform, numElements, dimension);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* 1d discrete fourier op, note that this will
* throw an exception if the passed in input
* isn't a vector.
* See matlab's fft2 for more information
*
* @param input the input to op
* @return the the discrete fourier op of the passed in input
*/
public static IComplexNDArray fft(INDArray input) {
return Nd4j.getFFt().fft(input);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
*
* @param arr
* @param dimension
* @return
*/
public static IComplexNDArray irfft(IComplexNDArray arr, int dimension) {
return Nd4j.getFFt().irfft(arr, dimension);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
*
* @param arr
* @return
*/
public static IComplexNDArray irfft(IComplexNDArray arr) {
return Nd4j.getFFt().irfft(arr);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* 1d discrete fourier op, note that this will
* throw an exception if the passed in input
* isn't a vector.
* See matlab's fft2 for more information
*
* @param inputC the input to op
* @return the the discrete fourier op of the passed in input
*/
public static IComplexNDArray ifft(IComplexNDArray inputC, int numElements, int dimension) {
return Nd4j.getFFt().ifft(inputC, numElements, dimension);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Underlying fft algorithm
*
* @param transform the ndarray to op
* @param n the desired number of elements
* @param dimension the dimension to do fft along
* @return the transformed ndarray
*/
public static IComplexNDArray rawfft(IComplexNDArray transform, int n, int dimension) {
return Nd4j.getFFt().rawfft(transform, n, dimension);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* FFT along a particular dimension
*
* @param transform the ndarray to op
* @param numElements the desired number of elements in each fft
* @return the ffted output
*/
public static IComplexNDArray fft(INDArray transform, int numElements) {
return Nd4j.getFFt().fft(transform, numElements);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* FFT along a particular dimension
*
* @param transform the ndarray to op
* @param numElements the desired number of elements in each fft
* @return the ffted output
*/
public static IComplexNDArray fft(INDArray transform, int numElements, int dimension) {
return Nd4j.getFFt().fft(transform, numElements, dimension);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* 1d discrete fourier op, note that this will
* throw an exception if the passed in input
* isn't a vector.
* See matlab's fft2 for more information
*
* @param inputC the input to op
* @return the the discrete fourier op of the passed in input
*/
public static IComplexNDArray fft(IComplexNDArray inputC, int numElements, int dimension) {
return Nd4j.getFFt().fft(inputC, numElements, dimension);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* FFT along a particular dimension
*
* @param transform the ndarray to op
* @param numElements the desired number of elements in each fft
* @return the ffted output
*/
public static IComplexNDArray ifft(INDArray transform, int numElements) {
return Nd4j.getFFt().ifft(transform, numElements);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* ND IFFT
*
* @param transform the ndarray to op
* @param dimension the dimension to iterate along
* @param numElements the desired number of elements in each fft
* @return the transformed array
*/
public static IComplexNDArray ifftn(IComplexNDArray transform, int dimension, int numElements) {
return Nd4j.getFFt().ifftn(transform, dimension, numElements);
}
代码示例来源:origin: org.nd4j/nd4j-jcublas-common
/**
* Get the handle for the current thread
* @return the handle for the current thread
*/
public cufftHandle getHandle() {
JcudaFft fft = (JcudaFft) Nd4j.getFFt();
return fft.getHandle();
}
代码示例来源:origin: org.nd4j/nd4j-jcublas-common
/**
* Get the handle for the current thread
* @return the handle for the current thread
*/
public cufftHandle getHandle() {
JcudaFft fft = (JcudaFft) Nd4j.getFFt();
return fft.getHandle();
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* FFT on the whole array (n is equal the first dimension shape)
*
* @param transform the matrix to op
* @return the ffted array
*/
public static IComplexNDArray fftn(IComplexNDArray transform) {
return Nd4j.getFFt().rawfftn(Nd4j.createComplex(transform), null, null);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Computes the fft along the first non singleton dimension of op
* when it is a matrix
*
* @param transform the ndarray to op
* @param dimension the dimension to do fft along
* @param numElements the desired number of elements in each fft
* @return the fft of the specified ndarray
*/
public static IComplexNDArray fftn(INDArray transform, int dimension, int numElements) {
return Nd4j.getFFt().fftn(Nd4j.createComplex(transform), dimension, numElements);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* ND IFFT, computes along the first on singleton dimension of
* op
*
* @param transform the ndarray to op
* @param dimension the dimension to iterate along
* @param numElements the desired number of elements in each fft
* @return the reverse ifft of the passed in array
*/
public static IComplexNDArray ifftn(INDArray transform, int dimension, int numElements) {
return Nd4j.getFFt().ifftn(Nd4j.createComplex(transform), dimension, numElements);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* FFT on the whole array (n is equal the first dimension shape)
*
* @param transform the matrix to op
* @return the ffted array
*/
public static IComplexNDArray fftn(INDArray transform) {
return Nd4j.getFFt().rawfftn(Nd4j.createComplex(transform), null, null);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* 1d discrete fourier op, note that this will
* throw an exception if the passed in input
* isn't a vector.
* See matlab's fft2 for more information
*
* @param inputC the input to op
* @return the the discrete fourier op of the passed in input
*/
public static IComplexNDArray fft(IComplexNDArray inputC, int numElements) {
return Nd4j.getFFt().fft(inputC, numElements, inputC.shape().length - 1);
}
内容来源于网络,如有侵权,请联系作者删除!