PSCF
v1.4.0
src
prdc
cuda
HostDArrayComplex.cu
1
/*
2
* PSCF - Polymer Self-Consistent Field
3
*
4
* Copyright 2015 - 2025, The Regents of the University of Minnesota
5
* Distributed under the terms of the GNU General Public License.
6
*/
7
8
#include "HostDArrayComplex.h"
9
10
namespace
Pscf
{
11
namespace
Prdc
{
12
namespace
Cuda
{
13
14
using namespace
Util;
15
16
/*
17
* Default constructor.
18
*/
19
HostDArrayComplex::HostDArrayComplex
()
20
:
HostDArray
<
cudaComplex
>()
21
{}
22
23
/*
24
* Allocating constructor.
25
*/
26
HostDArrayComplex::HostDArrayComplex
(
int
capacity
)
27
:
HostDArray
<
cudaComplex
>(
capacity
)
28
{}
29
30
/*
31
* Copy constructor.
32
*/
33
HostDArrayComplex::HostDArrayComplex
(
HostDArrayComplex
const
& other)
34
:
HostDArray
<
cudaComplex
>(other)
35
{}
36
37
/*
38
* Destructor.
39
*/
40
HostDArrayComplex::~HostDArrayComplex
()
41
{}
42
43
}
// namespace Cuda
44
}
// namespace Prdc
45
}
// namespace Pscf
Pscf::HostDArray< cudaComplex >::HostDArray
HostDArray()
Pscf::Prdc::Cuda::HostDArrayComplex::HostDArrayComplex
HostDArrayComplex()
Default constructor.
Definition
HostDArrayComplex.cu:19
Pscf::Prdc::Cuda::HostDArrayComplex::~HostDArrayComplex
~HostDArrayComplex()
Destructor.
Definition
HostDArrayComplex.cu:40
Util::Array::capacity
int capacity() const
Return allocated size.
Definition
Array.h:144
Pscf::Prdc::Cuda
Fields, FFTs, and utilities for periodic boundary conditions (CUDA).
Definition
CField.cu:12
Pscf::Prdc
Periodic fields and crystallography.
Definition
complex.cpp:11
Pscf
PSCF package top-level namespace.
Definition
param_domain.dox:1
Pscf::cudaComplex
cufftDoubleComplex cudaComplex
Complex number type used in CPU code that uses FFTW.
Definition
cudaTypes.h:22
Generated on
for PSCF by
1.14.0