1#ifndef RPG_HOST_D_ARRAY_COMPLEX_H
2#define RPG_HOST_D_ARRAY_COMPLEX_H
11#include <pscf/cuda/cudaTypes.h>
12#include <pscf/cuda/HostDArray.h>
80 using Base::operator =;
81 using Base::operator [];
HostDArrayComplex()
Default constructor.
~HostDArrayComplex()
Destructor.
cudaComplex ValueType
Type of each element.
HostDArray< cudaComplex > Base
Base class type.
cudaReal RealType
Type of real or imaginary part of a complex number.
Data * cArray()
Return a pointer to the underlying C array.
int capacity() const
Return allocated size.
void allocate(int capacity)
Allocate the underlying C array.
void deallocate()
Deallocate the underlying C array.
bool isAllocated() const
Return true if this DArray has been allocated, false otherwise.
Fields, FFTs, and utilities for periodic boundary conditions (CUDA).
Periodic fields and crystallography.
PSCF package top-level namespace.
cufftDoubleComplex cudaComplex
Complex number type used in CPU code that uses FFTW.
cufftDoubleReal cudaReal
Real number type used in CPU code that uses FFTW.