PSCF v1.3
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 <prdc/cuda/types.h> // template parameter
12#include <pscf/cuda/HostDArray.h> // base class
13
14namespace Pscf {
15namespace Rpg {
16
17 using namespace Util;
18
24 class HostDArrayComplex : public HostDArray<Prdc::Cuda::cudaComplex>
25 {
26
27 public:
28
32 typedef Prdc::Cuda::cudaComplex ElementType;
33
37 typedef Prdc::Cuda::cudaComplex Complex;
38
42 typedef Prdc::Cuda::cudaReal Real;
43
48
49 // Member functions
50
55
64
73
78
79 using Base::allocate;
80 using Base::deallocate;
81 using Base::operator =;
82 using Base::operator [];
83 using Base::capacity;
84 using Base::cArray;
86
87 };
88
89} // namespace Rpg
90} // namespace Pscf
91#endif
HostDArray< Complex > Base
Base class type.
HostDArrayComplex()
Default constructor.
Prdc::Cuda::cudaComplex Complex
Complex number type.
Prdc::Cuda::cudaReal Real
Type of real or imaginary part of a Complex number.
Prdc::Cuda::cudaComplex ElementType
Type of each element.
Data * cArray()
Return a pointer to the underlying C array.
Definition Array.h:214
void allocate(int capacity)
Allocate the underlying C array.
Definition DArray.h:199
void deallocate()
Dellocate the underlying C array.
Definition DArray.h:217
bool isAllocated() const
Return true if this DArray has been allocated, false otherwise.
Definition DArray.h:247
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
Definition param_pc.dox:1