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