PSCF v1.2
|
Comparator for fields in real-space (r-grid) format. More...
#include <RFieldComparison.h>
Public Member Functions | |
RFieldComparison () | |
Constructor. | |
double | compare (RField< D > const &a, RField< D > const &b) |
Comparator for individual fields. | |
double | compare (DArray< RField< D > > const &a, DArray< RField< D > > const &b) |
Comparator for arrays of fields. | |
double | maxDiff () const |
Get precomputed maximum element-by-element difference. | |
double | rmsDiff () const |
Get precomputed rms difference. | |
Comparator for fields in real-space (r-grid) format.
Definition at line 28 of file cuda/RFieldComparison.h.
Pscf::Prdc::Cuda::RFieldComparison< D >::RFieldComparison | ( | ) |
Constructor.
Definition at line 20 of file RFieldComparison.tpp.
double Pscf::Prdc::Cuda::RFieldComparison< D >::compare | ( | RField< D > const & | a, |
RField< D > const & | b ) |
Comparator for individual fields.
a | first array of fields |
b | second array of fields |
Definition at line 25 of file RFieldComparison.tpp.
References Util::Array< Data >::capacity().
double Pscf::Prdc::Cuda::RFieldComparison< D >::compare | ( | DArray< RField< D > > const & | a, |
DArray< RField< D > > const & | b ) |
Comparator for arrays of fields.
a | first array of fields |
b | second array of fields |
Definition at line 44 of file RFieldComparison.tpp.
References Util::DArray< T >::allocate(), and Util::Array< Data >::capacity().
|
inline |
Get precomputed maximum element-by-element difference.
Definition at line 57 of file cuda/RFieldComparison.h.
|
inline |
Get precomputed rms difference.
Definition at line 63 of file cuda/RFieldComparison.h.