Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtb::core::Fourier_transform_base< T, N > Class Template Reference

Base class for all Fourier transforms. More...

#include <fourier_transform.hh>

Inheritance diagram for vtb::core::Fourier_transform_base< T, N >:
[legend]

Public Types

typedef blitz::TinyVector< int, N > shape_type
 
typedef blitz::Array< T, N > array_type
 
typedef Wave_table< T > wavetable_type
 

Public Member Functions

 Fourier_transform_base (const shape_type &shp)
 
const shape_type & shape () const noexcept
 
void shape (const shape_type &rhs)
 Update wave table for specified shape. More...
 
void clear ()
 

Protected Member Functions

void check (const array_type &x)
 

Protected Attributes

wavetable_type _waves [N]
 

Detailed Description

template<class T, int N>
class vtb::core::Fourier_transform_base< T, N >

Base class for all Fourier transforms.

Date
2018-08-14
Author
Ivan Gankevich

The class stores wave table and work area for bit reversal.

Definition at line 220 of file core/fourier_transform.hh.

Member Function Documentation

◆ shape()

template<class T, int N>
void vtb::core::Fourier_transform_base< T, N >::shape ( const shape_type &  rhs)
inline

Update wave table for specified shape.

Date
2018-08-13
Author
Ivan Gankevich
  • Only dimensions with different size are updated.

Definition at line 259 of file core/fourier_transform.hh.