#include <source/mathops/array/ArrayDataNormOpsReal.h>
Inheritance diagram for SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >:
Public Member Functions | |
ArrayDataNormOpsReal () | |
~ArrayDataNormOpsReal () | |
double | sumControlVolumes (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, double > &cvol, const hier::Box< DIM > &box) const |
void | abs (pdat::ArrayData< DIM, TYPE > &dst, const pdat::ArrayData< DIM, TYPE > &src, const hier::Box< DIM > &box) const |
double | L1NormWithControlVolume (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, double > &cvol, const hier::Box< DIM > &box) const |
double | L1Norm (const pdat::ArrayData< DIM, TYPE > &data, const hier::Box< DIM > &box) const |
double | L2NormWithControlVolume (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, double > &cvol, const hier::Box< DIM > &box) const |
double | L2Norm (const pdat::ArrayData< DIM, TYPE > &data, const hier::Box< DIM > &box) const |
double | weightedL2NormWithControlVolume (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, TYPE > &weight, const pdat::ArrayData< DIM, double > &cvol, const hier::Box< DIM > &box) const |
double | weightedL2Norm (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, TYPE > &weight, const hier::Box< DIM > &box) const |
double | maxNormWithControlVolume (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, double > &cvol, const hier::Box< DIM > &box) const |
double | maxNorm (const pdat::ArrayData< DIM, TYPE > &data, const hier::Box< DIM > &box) const |
TYPE | dotWithControlVolume (const pdat::ArrayData< DIM, TYPE > &data1, const pdat::ArrayData< DIM, TYPE > &data2, const pdat::ArrayData< DIM, double > &cvol, const hier::Box< DIM > &box) const |
TYPE | dot (const pdat::ArrayData< DIM, TYPE > &data1, const pdat::ArrayData< DIM, TYPE > &data2, const hier::Box< DIM > &box) const |
TYPE | integral (const pdat::ArrayData< DIM, TYPE > &data, const pdat::ArrayData< DIM, double > &vol, const hier::Box< DIM > &box) 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. A similar set of norm operations is implemented for complex array data in the class ArrayDataNormOpsComplex<DIM>.
SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::ArrayDataNormOpsReal | ( | ) |
Empty constructor and destructor.
SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::~ArrayDataNormOpsReal | ( | ) |
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::sumControlVolumes | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, double > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | const |
Return sum of entries in control volume array.
void SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::abs | ( | pdat::ArrayData< DIM, TYPE > & | dst, | |
const pdat::ArrayData< 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::ArrayDataNormOpsReal< DIM, TYPE >::L1NormWithControlVolume | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, double > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | 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 .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::L1Norm | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const hier::Box< DIM > & | box | |||
) | const |
Return discrete -norm of the data. That is, the return value is the sum .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::L2NormWithControlVolume | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, double > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | 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 .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::L2Norm | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const hier::Box< DIM > & | box | |||
) | 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 .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::weightedL2NormWithControlVolume | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, TYPE > & | weight, | |||
const pdat::ArrayData< DIM, double > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | 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 .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::weightedL2Norm | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, TYPE > & | weight, | |||
const hier::Box< DIM > & | box | |||
) | const |
Return discrete weighted -norm of the data. That is, the return value is the sum .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::maxNormWithControlVolume | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, double > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | 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 .
double SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::maxNorm | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const hier::Box< DIM > & | box | |||
) | const |
Return the -norm of the data. That is, the return value is .
TYPE SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::dotWithControlVolume | ( | const pdat::ArrayData< DIM, TYPE > & | data1, | |
const pdat::ArrayData< DIM, TYPE > & | data2, | |||
const pdat::ArrayData< DIM, double > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | 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 .
TYPE SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::dot | ( | const pdat::ArrayData< DIM, TYPE > & | data1, | |
const pdat::ArrayData< DIM, TYPE > & | data2, | |||
const hier::Box< DIM > & | box | |||
) | const |
Return the dot product of the two data arrays. That is, the return value is the sum .
TYPE SAMRAI::math::ArrayDataNormOpsReal< DIM, TYPE >::integral | ( | const pdat::ArrayData< DIM, TYPE > & | data, | |
const pdat::ArrayData< DIM, double > & | vol, | |||
const hier::Box< DIM > & | box | |||
) | const |
Return the integral of the function based on the data array. The return value is the sum .