[arrayfire] 203/408: Removing consts from the fftInplace API
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit b92e629028407176599c0e9251b641f5188d1c1c
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Thu Aug 6 21:16:43 2015 -0400
Removing consts from the fftInplace API
---
include/af/signal.h | 12 ++++++------
src/api/cpp/fft.cpp | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/include/af/signal.h b/include/af/signal.h
index 8ddf71f..fbbd277 100644
--- a/include/af/signal.h
+++ b/include/af/signal.h
@@ -97,7 +97,7 @@ AFAPI array fft3Norm(const array& in, const double norm_factor, const dim_t odim
\ingroup signal_func_fft
*/
-AFAPI void fftInPlace(const array& in, const double norm_factor = 1);
+AFAPI void fftInPlace(array& in, const double norm_factor = 1);
/**
C++ Interface for fast fourier transform on two dimensional data
@@ -110,7 +110,7 @@ AFAPI void fftInPlace(const array& in, const double norm_factor = 1);
\ingroup signal_func_fft2
*/
-AFAPI void fft2InPlace(const array& in, const double norm_factor = 1);
+AFAPI void fft2InPlace(array& in, const double norm_factor = 1);
/**
C++ Interface for fast fourier transform on three dimensional data
@@ -123,7 +123,7 @@ AFAPI void fft2InPlace(const array& in, const double norm_factor = 1);
\ingroup signal_func_fft3
*/
-AFAPI void fft3InPlace(const array& in, const double norm_factor = 1);
+AFAPI void fft3InPlace(array& in, const double norm_factor = 1);
/**
C++ Interface for fast fourier transform on one dimensional data
@@ -258,7 +258,7 @@ AFAPI array ifft3Norm(const array& in, const double norm_factor, const dim_t odi
\ingroup signal_func_ifft
*/
-AFAPI void ifftInPlace(const array& in, const double norm_factor = 1);
+AFAPI void ifftInPlace(array& in, const double norm_factor = 1);
/**
C++ Interface for fast fourier transform on two dimensional data
@@ -271,7 +271,7 @@ AFAPI void ifftInPlace(const array& in, const double norm_factor = 1);
\ingroup signal_func_ifft2
*/
-AFAPI void ifft2InPlace(const array& in, const double norm_factor = 1);
+AFAPI void ifft2InPlace(array& in, const double norm_factor = 1);
/**
C++ Interface for fast fourier transform on three dimensional data
@@ -284,7 +284,7 @@ AFAPI void ifft2InPlace(const array& in, const double norm_factor = 1);
\ingroup signal_func_ifft3
*/
-AFAPI void ifft3InPlace(const array& in, const double norm_factor = 1);
+AFAPI void ifft3InPlace(array& in, const double norm_factor = 1);
/**
C++ Interface for inverse fast fourier transform on one dimensional data
diff --git a/src/api/cpp/fft.cpp b/src/api/cpp/fft.cpp
index 6d8c3c9..fe92549 100644
--- a/src/api/cpp/fft.cpp
+++ b/src/api/cpp/fft.cpp
@@ -144,36 +144,36 @@ array idft(const array& in)
return idft(in, 1.0, dim4(0,0,0,0));
}
-void fftInPlace(const array& in, const double norm_factor)
+void fftInPlace(array& in, const double norm_factor)
{
AF_THROW(af_fft_inplace(in.get(), norm_factor));
}
-void fft2InPlace(const array& in, const double norm_factor)
+void fft2InPlace(array& in, const double norm_factor)
{
AF_THROW(af_fft2_inplace(in.get(), norm_factor));
}
-void fft3InPlace(const array& in, const double norm_factor)
+void fft3InPlace(array& in, const double norm_factor)
{
AF_THROW(af_fft3_inplace(in.get(), norm_factor));
}
-void ifftInPlace(const array& in, const double norm_factor)
+void ifftInPlace(array& in, const double norm_factor)
{
const dim4 dims = in.dims();
double norm = norm_factor *(1.0 / dims[0]);
AF_THROW(af_ifft_inplace(in.get(), norm));
}
-void ifft2InPlace(const array& in, const double norm_factor)
+void ifft2InPlace(array& in, const double norm_factor)
{
const dim4 dims = in.dims();
double norm = norm_factor *(1.0 / (dims[0] * dims[1]));
AF_THROW(af_ifft2_inplace(in.get(), norm));
}
-void ifft3InPlace(const array& in, const double norm_factor)
+void ifft3InPlace(array& in, const double norm_factor)
{
const dim4 dims = in.dims();
double norm = norm_factor *(1.0 / (dims[0] * dims[1] * dims[2]));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list