1#ifndef PRDC_CPU_FFTW_D_ARRAY_TPP
2#define PRDC_CPU_FFTW_D_ARRAY_TPP
11#include "FftwDArray.h"
23 template <
typename Data>
31 template <
typename Data>
47 template <
typename Data>
51 UTIL_THROW(
"Attempt to re-allocate a FftwDArray");
54 UTIL_THROW(
"Attempt to allocate FftwDArray with capacity <= 0");
65 template <
typename Data>
void allocate(int capacity)
Allocate the underlying C array.
virtual ~FftwDArray()
Destructor.
FftwDArray()
Default constructor.
virtual void deallocate()
Dellocate the underlying C array.
bool isAllocated() const
Return true if the FftwDArray has been allocated, false otherwise.
Data * data_
Pointer to an array of Data elements.
int capacity() const
Return allocated size.
int capacity_
Allocated size of the data_ array.
Array()
Default constructor.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Fields and FFTs for periodic boundary conditions (CPU)
Periodic fields and crystallography.
PSCF package top-level namespace.