|
PSCF v1.4.0
|
Reduction operations performed on a CPU or GPU. 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). | |
| double | sumSq (Array< double > const &in) |
| Compute sum of of squares of array elements (real). | |
| double | innerProduct (Array< double > const &a, Array< double > const &b) |
| Compute Euclidean inner product of two real arrays . | |
| 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 . | |
| 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). | |
| std::complex< double > | sumSq (Array< fftw_complex > const &a) |
| Compute sum of squares of elements of a complex array. | |
| 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). | |
| void | freeWorkSpace () |
| Free any private work space currently allocated for reductions. | |
| cudaReal | sum (DeviceArray< cudaReal > const &in) |
| Return sum of elements of a real array. | |
| cudaReal | sum (DeviceArray< cudaReal > const &in, int begin, int end) |
| Return sum of elements of a real array slice. | |
| std::complex< cudaReal > | sum (DeviceArray< cudaComplex > const &in) |
| Return sum of all elements of a complex array. | |
| std::complex< cudaReal > | sum (DeviceArray< cudaComplex > const &in, int begin, int end) |
| Return sum of elements of a complex array slice. | |
| cudaReal | sumSq (DeviceArray< cudaReal > const &in) |
| Return sum of squares of elements of a real array. | |
| std::complex< cudaReal > | sumSq (DeviceArray< cudaComplex > const &in) |
| Return sum of squares of elements of a complex array. | |
| cudaReal | sumSqAbs (DeviceArray< cudaComplex > const &in) |
| Return sum of squared magnitudes of elements of a complex array. | |
| cudaReal | innerProduct (DeviceArray< cudaReal > const &a, DeviceArray< cudaReal > const &b) |
| Return the inner product of two real arrays. | |
| cudaReal | max (DeviceArray< cudaReal > const &in) |
| Return maximum of all real array elements. | |
| cudaReal | max (DeviceArray< cudaReal > const &in, int begin, int end) |
| Return maximum of elements of a real array slice. | |
| cudaReal | maxAbs (DeviceArray< cudaReal > const &in) |
| Get maximum absolute magnitude of real array elements. | |
| cudaReal | min (DeviceArray< cudaReal > const &in) |
| Return minimum of all real array elements. | |
| cudaReal | min (DeviceArray< cudaReal > const &in, int begin, int end) |
| Return minimum of elements of a real array slice. | |
| cudaReal | minAbs (DeviceArray< cudaReal > const &in) |
| Return minimum absolute magnitude of real array elements. | |
Reduction operations performed on a CPU or GPU.