org.nd4j.linalg.factory.Nd4j.getFFt()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.nd4j.linalg.factory.Nd4j.getFFt()方法的一些代码示例,展示了Nd4j.getFFt()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nd4j.getFFt()方法的具体详情如下:
包路径:org.nd4j.linalg.factory.Nd4j
类名称:Nd4j
方法名:getFFt

Nd4j.getFFt介绍

[英]Returns the fft instance
[中]返回fft实例

代码示例

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * 1d discrete fourier op, note that this will
  3. * throw an exception if the passed in input
  4. * isn't a vector.
  5. * See matlab's fft2 for more information
  6. *
  7. * @param inputC the input to op
  8. * @return the the discrete fourier op of the passed in input
  9. */
  10. public static IComplexNDArray ifft(IComplexNDArray inputC) {
  11. return Nd4j.getFFt().ifft(inputC);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * 1d discrete fourier op, note that this will
  3. * throw an exception if the passed in input
  4. * isn't a vector.
  5. * See matlab's fft2 for more information
  6. *
  7. * @param inputC the input to op
  8. * @return the the discrete fourier op of the passed in input
  9. */
  10. public static IComplexNDArray fft(IComplexNDArray inputC) {
  11. return Nd4j.getFFt().fft(inputC);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * IFFT along a particular dimension
  3. *
  4. * @param transform the ndarray to op
  5. * @param numElements the desired number of elements in each fft
  6. * @param dimension the dimension to do fft along
  7. * @return the iffted output
  8. */
  9. public static IComplexNDArray ifft(INDArray transform, int numElements, int dimension) {
  10. return Nd4j.getFFt().ifft(transform, numElements, dimension);
  11. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * 1d discrete fourier op, note that this will
  3. * throw an exception if the passed in input
  4. * isn't a vector.
  5. * See matlab's fft2 for more information
  6. *
  7. * @param input the input to op
  8. * @return the the discrete fourier op of the passed in input
  9. */
  10. public static IComplexNDArray fft(INDArray input) {
  11. return Nd4j.getFFt().fft(input);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. *
  3. * @param arr
  4. * @param dimension
  5. * @return
  6. */
  7. public static IComplexNDArray irfft(IComplexNDArray arr, int dimension) {
  8. return Nd4j.getFFt().irfft(arr, dimension);
  9. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. *
  3. * @param arr
  4. * @return
  5. */
  6. public static IComplexNDArray irfft(IComplexNDArray arr) {
  7. return Nd4j.getFFt().irfft(arr);
  8. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * 1d discrete fourier op, note that this will
  3. * throw an exception if the passed in input
  4. * isn't a vector.
  5. * See matlab's fft2 for more information
  6. *
  7. * @param inputC the input to op
  8. * @return the the discrete fourier op of the passed in input
  9. */
  10. public static IComplexNDArray ifft(IComplexNDArray inputC, int numElements, int dimension) {
  11. return Nd4j.getFFt().ifft(inputC, numElements, dimension);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * Underlying fft algorithm
  3. *
  4. * @param transform the ndarray to op
  5. * @param n the desired number of elements
  6. * @param dimension the dimension to do fft along
  7. * @return the transformed ndarray
  8. */
  9. public static IComplexNDArray rawfft(IComplexNDArray transform, int n, int dimension) {
  10. return Nd4j.getFFt().rawfft(transform, n, dimension);
  11. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * FFT along a particular dimension
  3. *
  4. * @param transform the ndarray to op
  5. * @param numElements the desired number of elements in each fft
  6. * @return the ffted output
  7. */
  8. public static IComplexNDArray fft(INDArray transform, int numElements) {
  9. return Nd4j.getFFt().fft(transform, numElements);
  10. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * FFT along a particular dimension
  3. *
  4. * @param transform the ndarray to op
  5. * @param numElements the desired number of elements in each fft
  6. * @return the ffted output
  7. */
  8. public static IComplexNDArray fft(INDArray transform, int numElements, int dimension) {
  9. return Nd4j.getFFt().fft(transform, numElements, dimension);
  10. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * 1d discrete fourier op, note that this will
  3. * throw an exception if the passed in input
  4. * isn't a vector.
  5. * See matlab's fft2 for more information
  6. *
  7. * @param inputC the input to op
  8. * @return the the discrete fourier op of the passed in input
  9. */
  10. public static IComplexNDArray fft(IComplexNDArray inputC, int numElements, int dimension) {
  11. return Nd4j.getFFt().fft(inputC, numElements, dimension);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * FFT along a particular dimension
  3. *
  4. * @param transform the ndarray to op
  5. * @param numElements the desired number of elements in each fft
  6. * @return the ffted output
  7. */
  8. public static IComplexNDArray ifft(INDArray transform, int numElements) {
  9. return Nd4j.getFFt().ifft(transform, numElements);
  10. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * ND IFFT
  3. *
  4. * @param transform the ndarray to op
  5. * @param dimension the dimension to iterate along
  6. * @param numElements the desired number of elements in each fft
  7. * @return the transformed array
  8. */
  9. public static IComplexNDArray ifftn(IComplexNDArray transform, int dimension, int numElements) {
  10. return Nd4j.getFFt().ifftn(transform, dimension, numElements);
  11. }

代码示例来源:origin: org.nd4j/nd4j-jcublas-common

  1. /**
  2. * Get the handle for the current thread
  3. * @return the handle for the current thread
  4. */
  5. public cufftHandle getHandle() {
  6. JcudaFft fft = (JcudaFft) Nd4j.getFFt();
  7. return fft.getHandle();
  8. }

代码示例来源:origin: org.nd4j/nd4j-jcublas-common

  1. /**
  2. * Get the handle for the current thread
  3. * @return the handle for the current thread
  4. */
  5. public cufftHandle getHandle() {
  6. JcudaFft fft = (JcudaFft) Nd4j.getFFt();
  7. return fft.getHandle();
  8. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * FFT on the whole array (n is equal the first dimension shape)
  3. *
  4. * @param transform the matrix to op
  5. * @return the ffted array
  6. */
  7. public static IComplexNDArray fftn(IComplexNDArray transform) {
  8. return Nd4j.getFFt().rawfftn(Nd4j.createComplex(transform), null, null);
  9. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * Computes the fft along the first non singleton dimension of op
  3. * when it is a matrix
  4. *
  5. * @param transform the ndarray to op
  6. * @param dimension the dimension to do fft along
  7. * @param numElements the desired number of elements in each fft
  8. * @return the fft of the specified ndarray
  9. */
  10. public static IComplexNDArray fftn(INDArray transform, int dimension, int numElements) {
  11. return Nd4j.getFFt().fftn(Nd4j.createComplex(transform), dimension, numElements);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * ND IFFT, computes along the first on singleton dimension of
  3. * op
  4. *
  5. * @param transform the ndarray to op
  6. * @param dimension the dimension to iterate along
  7. * @param numElements the desired number of elements in each fft
  8. * @return the reverse ifft of the passed in array
  9. */
  10. public static IComplexNDArray ifftn(INDArray transform, int dimension, int numElements) {
  11. return Nd4j.getFFt().ifftn(Nd4j.createComplex(transform), dimension, numElements);
  12. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * FFT on the whole array (n is equal the first dimension shape)
  3. *
  4. * @param transform the matrix to op
  5. * @return the ffted array
  6. */
  7. public static IComplexNDArray fftn(INDArray transform) {
  8. return Nd4j.getFFt().rawfftn(Nd4j.createComplex(transform), null, null);
  9. }

代码示例来源:origin: org.nd4j/nd4j-api

  1. /**
  2. * 1d discrete fourier op, note that this will
  3. * throw an exception if the passed in input
  4. * isn't a vector.
  5. * See matlab's fft2 for more information
  6. *
  7. * @param inputC the input to op
  8. * @return the the discrete fourier op of the passed in input
  9. */
  10. public static IComplexNDArray fft(IComplexNDArray inputC, int numElements) {
  11. return Nd4j.getFFt().fft(inputC, numElements, inputC.shape().length - 1);
  12. }

相关文章