#include <source/mathops/cell/PatchCellDataNormOpsComplex.h>
Inheritance diagram for SAMRAI::math::PatchCellDataNormOpsComplex< DIM >:
Public Member Functions | |
PatchCellDataNormOpsComplex () | |
virtual | ~PatchCellDataNormOpsComplex () |
int | numberOfEntries (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const hier::Box< DIM > &box) const |
double | sumControlVolumes (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const tbox::Pointer< pdat::CellData< DIM, double > > &cvol, const hier::Box< DIM > &box) const |
void | abs (tbox::Pointer< pdat::CellData< DIM, double > > &dst, const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &src, const hier::Box< DIM > &box) const |
double | L1Norm (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
double | L2Norm (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
double | weightedL2Norm (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &weight, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
double | RMSNorm (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
double | weightedRMSNorm (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &weight, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
double | maxNorm (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
dcomplex | dot (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data1, const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data2, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > cvol=(0)) const |
dcomplex | integral (const tbox::Pointer< pdat::CellData< DIM, dcomplex > > &data, const hier::Box< DIM > &box, const tbox::Pointer< pdat::CellData< DIM, double > > vol) const |
Note that a similar set of norm operations is implemented for real patch data (double and float) in the class PatchCellDataNormOpsReal<DIM>.
SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::PatchCellDataNormOpsComplex | ( | ) |
Empty constructor and destructor.
SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::~PatchCellDataNormOpsComplex | ( | ) | [virtual] |
int SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::numberOfEntries | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const hier::Box< DIM > & | box | |||
) | const |
Return the number of data values for the cell-centered data object in the given box.
double SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::sumControlVolumes | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const tbox::Pointer< pdat::CellData< DIM, double > > & | cvol, | |||
const hier::Box< DIM > & | box | |||
) | const |
Return sum of control volume entries for the cell-centered data object.
void SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::abs | ( | tbox::Pointer< pdat::CellData< DIM, double > > & | dst, | |
const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | src, | |||
const hier::Box< DIM > & | box | |||
) | const |
Set destination component to norm of source component. That is, each destination entry is set to .
double SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::L1Norm | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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::PatchCellDataNormOpsComplex< DIM >::L2Norm | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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::PatchCellDataNormOpsComplex< DIM >::weightedL2Norm | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | weight, | |||
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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::PatchCellDataNormOpsComplex< DIM >::RMSNorm | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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::PatchCellDataNormOpsComplex< DIM >::weightedRMSNorm | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | weight, | |||
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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::PatchCellDataNormOpsComplex< DIM >::maxNorm | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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.
dcomplex SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::dot | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data1, | |
const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data2, | |||
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< 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.
dcomplex SAMRAI::math::PatchCellDataNormOpsComplex< DIM >::integral | ( | const tbox::Pointer< pdat::CellData< DIM, dcomplex > > & | data, | |
const hier::Box< DIM > & | box, | |||
const tbox::Pointer< pdat::CellData< DIM, double > > | vol | |||
) | const |
Return the integral of the function represented by the data array. The return value is the sum .