|
PSCF v1.5.0
|
Comparator for RFieldDft (k-grid) arrays. More...
#include <RFieldDftComparison.h>
Public Member Functions | |
| RFieldDftComparison () | |
| Default constructor. | |
| double | compare (RFieldDft< D, CPT > const &a, RFieldDft< D, CPT > const &b) |
| Compare individual fields. | |
| double | compare (DArray< RFieldDft< D, CPT > > const &a, DArray< RFieldDft< D, CPT > > const &b) |
| Compare arrays of fields associated with different monomer types. | |
| double | maxDiff () const |
| Return the precomputed maximum element-by-element difference. | |
| double | rmsDiff () const |
| Return the precomputed root-mean-squared difference. | |
Comparator for RFieldDft (k-grid) arrays.
Definition at line 34 of file cpp/RFieldDftComparison.h.
| Pscf::RFieldDftComparison< D, CPT >::RFieldDftComparison | ( | ) |
Default constructor.
Initializes maxDiff and rmsDiff to zero.
Definition at line 22 of file cpp/RFieldDftComparison.tpp.
References RFieldDftComparison().
Referenced by compare(), compare(), and RFieldDftComparison().
| double Pscf::RFieldDftComparison< D, CPT >::compare | ( | RFieldDft< D, CPT > const & | a, |
| RFieldDft< D, CPT > const & | b ) |
Compare individual fields.
Array dimensions must agree. An Exception is thrown if the capacities of fields a and b are not equal.
| a | 1st field |
| b | 2nd field |
Definition at line 31 of file cpp/RFieldDftComparison.tpp.
References RFieldDftComparison(), and UTIL_CHECK.
| double Pscf::RFieldDftComparison< D, CPT >::compare | ( | DArray< RFieldDft< D, CPT > > const & | a, |
| DArray< RFieldDft< D, CPT > > const & | b ) |
Compare arrays of fields associated with different monomer types.
All array dimensions must agree.
An exception is thrown if the capacities of the enclosing DArrays (the number of monomers) are not equal or if the capacities of any pair of individual fields (number of grid points or basis functions) are not equal.
Definition at line 70 of file cpp/RFieldDftComparison.tpp.
References RFieldDftComparison(), and UTIL_CHECK.
|
inline |
Return the precomputed maximum element-by-element difference.
This function returns the maximum difference between corresponding field array elements found by the most recent comparison.
Definition at line 84 of file cpp/RFieldDftComparison.h.
|
inline |
Return the precomputed root-mean-squared difference.
This function returns the root-mean-squared difference between corresponding elements found by the most recent comparison.
Definition at line 93 of file cpp/RFieldDftComparison.h.