PSCF v1.5.0
Pscf::Reduce Namespace Reference

Functions that perform array reductions. More...

Functions

double sum (Array< double > const &in)
 Compute sum of array elements (real).
double sum (Array< double > const &in, int begin, int end)
 Compute sum of elements of an array slice (real).
std::complex< double > sum (Array< fftw_complex > const &a)
 Compute sum of all elements of an array (complex).
std::complex< double > sum (Array< fftw_complex > const &a, int begin, int end)
 Compute sum of elements of an array slice (complex).
double sumSq (Array< double > const &in)
 Compute sum of of squares of array elements (real).
std::complex< double > sumSq (Array< fftw_complex > const &a)
 Compute sum of squares of elements of a complex array.
double innerProduct (Array< double > const &a, Array< double > const &b)
 Compute Euclidean inner product of two real arrays .
std::complex< double > sumProduct (Array< fftw_complex > const &a, Array< fftw_complex > const &b)
 Compute sum of complex products of elements of two arrays (complex).
double max (Array< double > const &in)
 Get maximum of array elements (real).
double max (Array< double > const &in, int begin, int end)
 Get value of maximum element in an array slice (real).
double maxAbs (Array< double > const &in)
 Get maximum absolute magnitude of array elements .
double min (Array< double > const &in)
 Get minimum of array elements .
double min (Array< double > const &in, int begin, int end)
 Get value of minimum element in an array slice (real).
double minAbs (Array< double > const &in)
 Get minimum absolute magnitude of array elements .
void freeWorkSpace ()
 Free any private work space currently allocated for reductions.
cudaReal sum (BackendArray< cudaReal, CUT > const &in)
 Return sum of elements of a real array.
cudaReal sum (BackendArray< cudaReal, CUT > const &in, int begin, int end)
 Return sum of elements of a real array slice.
std::complex< cudaReal > sum (BackendArray< cudaComplex, CUT > const &in)
 Return sum of all elements of a complex array.
std::complex< cudaReal > sum (BackendArray< cudaComplex, CUT > const &in, int begin, int end)
 Return sum of elements of a complex array slice.
cudaReal sumSq (BackendArray< cudaReal, CUT > const &in)
 Return sum of squares of elements of a real array.
std::complex< cudaReal > sumSq (BackendArray< cudaComplex, CUT > const &in)
 Return sum of squares of elements of a complex array.
cudaReal sumSqAbs (BackendArray< cudaComplex, CUT > const &in)
 Return sum of squared magnitudes of elements of a complex array.
cudaReal innerProduct (BackendArray< cudaReal, CUT > const &a, BackendArray< cudaReal, CUT > const &b)
 Return the inner product of two real arrays.
cudaReal max (BackendArray< cudaReal, CUT > const &in)
 Return maximum of all real array elements.
cudaReal max (BackendArray< cudaReal, CUT > const &in, int begin, int end)
 Return maximum of elements of a real array slice.
cudaReal maxAbs (BackendArray< cudaReal, CUT > const &in)
 Get maximum absolute magnitude of real array elements.
cudaReal min (BackendArray< cudaReal, CUT > const &in)
 Return minimum of all real array elements.
cudaReal min (BackendArray< cudaReal, CUT > const &in, int begin, int end)
 Return minimum of elements of a real array slice.
cudaReal minAbs (BackendArray< cudaReal, CUT > const &in)
 Return minimum absolute magnitude of real array elements.

Detailed Description

Functions that perform array reductions.

Array reduction operations.