9#include <util/containers/Array.h>
25 for (
int i = 1; i < n; i++) {
26 if (in[i] >
max)
max = in[i];
39 double max = std::abs(in[0]);
40 for (
int i = 1; i < n; i++) {
41 val = std::abs(in[i]);
55 for (
int i = 1; i < n; i++) {
56 if (in[i] <
min)
min = in[i];
69 double min = std::abs(in[0]);
70 for (
int i = 1; i < n; i++) {
71 val = std::abs(in[i]);
85 for (
int i = 0; i < n; i++) {
101 for (
int i = 0; i < n; i++) {
Array container class template.
int capacity() const
Return allocated size.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Functions that perform array reductions on the Cpu.
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)
Periodic fields and crystallography.
PSCF package top-level namespace.