PSCF v1.3.1
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
29 // Public typdefs
30
34 typedef Prdc::Cuda::cudaComplex ElementType;
35
39 typedef Prdc::Cuda::cudaComplex Complex;
40
44 typedef Prdc::Cuda::cudaReal Real;
45
50
51 // Member functions
52
57
66
75
80
81 // Inherited member functions
82 using Base::allocate;
83 using Base::deallocate;
84 using Base::operator =;
85 using Base::operator [];
86 using Base::capacity;
87 using Base::cArray;
89
90 };
91
92} // namespace Rpg
93} // namespace Pscf
94#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