9#include <util/containers/Array.h>
24 for (
int i = 1; i < n; i++) {
25 if (in[i] > max) max = in[i];
37 double max = std::abs(in[0]);
38 for (
int i = 1; i < n; i++) {
39 val = std::abs(in[i]);
40 if (val > max) max = val;
52 for (
int i = 1; i < n; i++) {
53 if (in[i] < min) min = in[i];
65 double min = std::abs(in[0]);
66 for (
int i = 1; i < n; i++) {
67 val = std::abs(in[i]);
68 if (val < min) min = val;
80 for (
int i = 0; i < n; i++) {
95 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 parallel reductions on the GPU.
Fields, FFTs, and utilities for periodic boundary conditions (CUDA)
Periodic fields and crystallography.
PSCF package top-level namespace.