Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66876093
fftransform_fftw.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 18, 15:20
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Jun 20, 15:20 (2 d)
Engine
blob
Format
Raw Data
Handle
18309402
Attached To
rTAMAAS tamaas
fftransform_fftw.hh
View Options
/**
* @file
* @section LICENSE
*
* Copyright (©) 2016-19 EPFL (École Polytechnique Fédérale de Lausanne),
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef FFTRANSFORM_FFTW_HH
#define FFTRANSFORM_FFTW_HH
#include "fftransform.hh"
#include <fftw3.h>
namespace
tamaas
{
/**
* @brief Class wrapping fftw's interface
*/
template
<
typename
T
,
UInt
dim
>
class
FFTransformFFTW
:
public
FFTransform
<
T
,
dim
>
{
public
:
/// Constructor
FFTransformFFTW
(
Grid
<
T
,
dim
>&
real
,
GridHermitian
<
T
,
dim
>&
spectral
);
/// Destructor
virtual
~
FFTransformFFTW
();
public
:
/// Perform FFT
void
forwardTransform
()
override
;
/// Perform IFFT
void
backwardTransform
()
override
;
private
:
fftw_plan
forward_plan
;
fftw_plan
backward_plan
;
};
}
// namespace tamaas
#endif
// FFTRANSFORM_FFTW_HH
Event Timeline
Log In to Comment