PSCF v1.3
cpu/Reduce.h
1#ifndef PRDC_CPU_REDUCE_H
2#define PRDC_CPU_REDUCE_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 <util/containers/Array.h>
12
13using namespace Util;
14
15namespace Pscf {
16namespace Prdc {
17namespace Cpu {
18
30 namespace Reduce {
31
37 double max(Array<double> const & in);
38
44 double maxAbs(Array<double> const & in);
45
51 double min(Array<double> const & in);
52
58 double minAbs(Array<double> const & in);
59
65 double sum(Array<double> const & in);
66
73 double innerProduct(Array<double> const & a,
74 Array<double> const & b);
75
77
78} // Reduce
79} // Cpu
80} // Prdc
81} // Pscf
82#endif
Array container class template.
Definition Array.h:34
Functions that perform array reductions on the Cpu.
Definition cpu/Reduce.h:30
double minAbs(Array< double > const &in)
Get minimum absolute magnitude of array elements .
double sum(Array< double > const &in)
Compute sum of array elements .
double maxAbs(Array< double > const &in)
Get maximum absolute magnitude of array elements .
double innerProduct(Array< double > const &a, Array< double > const &b)
Compute inner product of two real arrays .
double max(Array< double > const &in)
Get maximum of array elements .
double min(Array< double > const &in)
Get minimum of array elements .
Fields and FFTs for periodic boundary conditions (CPU)
Definition CField.cpp:12
Periodic fields and crystallography.
Definition CField.cpp:11
PSCF package top-level namespace.
Definition param_pc.dox:1
Utility classes for scientific computation.