PSCF v1.4.0
HostDArrayComplex.h
1#ifndef RPG_HOST_D_ARRAY_COMPLEX_H
2#define RPG_HOST_D_ARRAY_COMPLEX_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <pscf/cuda/cudaTypes.h> // template parameter
12#include <pscf/cuda/HostDArray.h> // base class
13
14namespace Pscf {
15namespace Prdc {
16namespace Cuda {
17
18 using namespace Util;
19
25 class HostDArrayComplex : public HostDArray<cudaComplex>
26 {
27
28 public:
29
30 // Public type name aliases
31
36
41
46
47 // Member functions
48
53
62
71
76
77 // Inherited member functions
78 using Base::allocate;
79 using Base::deallocate;
80 using Base::operator =;
81 using Base::operator [];
82 using Base::capacity;
83 using Base::cArray;
85
86 };
87
88} // namespace Cuda
89} // namespace Prdc
90} // namespace Pscf
91#endif
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.
Definition Array.h:199
int capacity() const
Return allocated size.
Definition Array.h:144
void allocate(int capacity)
Allocate the underlying C array.
Definition DArray.h:269
void deallocate()
Deallocate the underlying C array.
Definition DArray.h:285
bool isAllocated() const
Return true if this DArray has been allocated, false otherwise.
Definition DArray.h:151
Fields, FFTs, and utilities for periodic boundary conditions (CUDA).
Definition CField.cu:12
Periodic fields and crystallography.
Definition complex.cpp:11
PSCF package top-level namespace.
cufftDoubleComplex cudaComplex
Complex number type used in CPU code that uses FFTW.
Definition cudaTypes.h:22
cufftDoubleReal cudaReal
Real number type used in CPU code that uses FFTW.
Definition cudaTypes.h:35