#include <source/mathops/face/PatchFaceDataNormOpsReal.h>
Inheritance diagram for SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >:
Public Member Functions | |
PatchFaceDataNormOpsReal () | |
virtual | ~PatchFaceDataNormOpsReal () |
int | numberOfEntries (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const hier::Box< DIM > &box) const |
double | sumControlVolumes (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const tbox::Pointer< pdat::FaceData< DIM, double > > &cvol, const hier::Box< DIM > &box) const |
void | abs (tbox::Pointer< pdat::FaceData< DIM, TYPE > > &dst, const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &src, const hier::Box< DIM > &box) const |
double | L1Norm (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
double | L2Norm (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
double | weightedL2Norm (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &weight, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
double | RMSNorm (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
double | weightedRMSNorm (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &weight, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
double | maxNorm (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
TYPE | dot (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data1, const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data2, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > cvol=(0)) const |
TYPE | integral (const tbox::Pointer< pdat::FaceData< DIM, TYPE > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::FaceData< DIM, double > > vol) const |
These operations typically apply only to the numerical standard built-in types, such as double, float, and the complex type (which may or may not be a built-in type depending on the C++ compiler). This templated class should only be used to instantiate objects with double or float as the template parameter. Note that a similar set of norm operations is implemented for complex patch data in the class PatchFaceDataNormOpsComplex<DIM>.
SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::PatchFaceDataNormOpsReal | ( | ) |
Empty constructor and destructor.
SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::~PatchFaceDataNormOpsReal | ( | ) | [virtual] |
int SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::numberOfEntries | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const hier::Box< DIM > & | box | |||
) | const |
Return the number of data values for the face-centered data object in the given box. Note that it is assumed that the box refers to the cell-centered index space corresponding to the patch hierarchy.
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::sumControlVolumes | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const tbox::Pointer< pdat::FaceData< DIM, double > > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | const |
Return sum of control volume entries for the face-centered data object.
void SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::abs | ( | tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | dst, | |
const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | src, | |||
const hier::Box< DIM > & | box | |||
) | const |
Set destination component to absolute value of source component. That is, each destination entry is set to .
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::L1Norm | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return discrete -norm of the data using the control volume to weight the contribution of each data entry to the sum. That is, the return value is the sum . If the control volume is NULL, the return value is .
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::L2Norm | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return discrete -norm of the data using the control volume to weight the contribution of each data entry to the sum. That is, the return value is the sum . If the control volume is NULL, the return value is .
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::weightedL2Norm | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | weight, | |||
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return discrete weighted -norm of the data using the control volume to weight the contribution of the data and weight entries to the sum. That is, the return value is the sum . If the control volume is NULL, the return value is .
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::RMSNorm | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return discrete root mean squared norm of the data. If the control volume is not NULL, the return value is the -norm divided by the square root of the sum of the control volumes. Otherwise, the return value is the -norm divided by the square root of the number of data entries.
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::weightedRMSNorm | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | weight, | |||
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return discrete weighted root mean squared norm of the data. If the control volume is not NULL, the return value is the weighted -norm divided by the square root of the sum of the control volumes. Otherwise, the return value is the weighted -norm divided by the square root of the number of data entries.
double SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::maxNorm | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return the -norm of the data using the control volume to weight the contribution of each data entry to the maximum. That is, the return value is , where the max is over the data elements where . If the control volume is NULL, it is ignored during the computation of the maximum.
TYPE SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::dot | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data1, | |
const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data2, | |||
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | cvol = (0) | |||
) | const |
Return the dot product of the two data arrays using the control volume to weight the contribution of each product to the sum. That is, the return value is the sum . If the control volume is NULL, it is ignored during the summation.
TYPE SAMRAI::math::PatchFaceDataNormOpsReal< DIM, TYPE >::integral | ( | const tbox::Pointer< pdat::FaceData< DIM, TYPE > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::FaceData< DIM, double > > | vol | |||
) | const |
Return the integral of the function represented by the data array. The return value is the sum .