OpendTect-6_4  6.4
Classes | Functions | Variables
ArrayMath Namespace Reference

Classes

class  ArrayOperExecSetup
 
class  ArrOperExec
 Parallel task for computing the element wise operations of one array and optionally a second input array. Should not be used directly, instead call getSum(const ArrayND) More...
 
class  CumArrOperExec
 Parallel task for computing the sum of element wise operations of one array and optionally a second input array. Should not be used directly, instead call getSum(const ArrayND) More...
 
class  CumSumExec
 

Functions

template<class T >
getSum (const ArrayND< T > &in, bool noudf, bool parallel)
 returns the sum of all defined values in the Array. Returns UDF if empty or only udfs encountered. More...
 
template<>
float_complex getSum (const ArrayND< float_complex > &in, bool noudf, bool parallel)
 
template<class T >
T mDeprecated getSum (const ArrayND< T > &in, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getAverage (const ArrayND< T > &in, bool noudf, bool parallel)
 returns the average amplitude of the array More...
 
template<class T >
T mDeprecated getAverage (const ArrayND< T > &in, bool noudf)
 will be removed after 6.0 More...
 
template<>
float_complex getAverage< float_complex > (const ArrayND< float_complex > &in, bool noudf, bool parallel)
 Specialization for complex numbers. More...
 
template<>
float_complex mDeprecated getAverage< float_complex > (const ArrayND< float_complex > &in, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
 mDefParallelCalc5Pars (ScalingExec, od_static_tr("ScalingExec","Array scaler executor"), const T *, arrin, T *, arrout, T, fact, T, shift, bool, noudf) mDefParallelCalcBody(
 
 if (!noudf_ &&(mIsUdf(inpval)))
 
template<class T >
void getScaledArray (const ArrayND< T > &in, ArrayND< T > *out_, double fact, double shift, bool noudf, bool parallel)
 returns a scaled array More...
 
template<class T >
mDeprecated void getScaled (const ArrayND< T > &in, ArrayND< T > *out_, T fact, T shift, bool noudf, bool parallel)
 will be removed after 6.0 More...
 
template<class T >
mDeprecated void getScaled (const ArrayND< T > &in, ArrayND< T > *out_, T fact, T shift, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
 mDefParallelCalc6Pars (SumExec, od_static_tr("SumExec","Array addition executor"), const T *, arr1, const T *, arr2, T *, out, T, fact1, T, fact2, bool, noudf) mDefParallelCalcBody(
 
 if (!noudf_ &&(mIsUdf(val1)||mIsUdf(val2)))
 
template<class T >
void getSumArrays (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, double fact1, double fact2, bool noudf, bool parallel)
 computes the sum array between two arrays with scaling More...
 
template<class T >
mDeprecated void getSum (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, T fact1, T fact2, bool noudf, bool parallel)
 will be removed after 6.0 More...
 
template<class T >
mDeprecated void getSum (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, T fact1, T fact2, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
 mDefParallelCalc4Pars (ProdExec, od_static_tr("ProdExec","Array product executor"), const T *, arr1, const T *, arr2, T *, out, bool, noudf) mDefParallelCalcBody(
 
template<class T >
void getProduct (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, bool noudf, bool parallel)
 computes the product array between two arrays More...
 
template<class T >
mDeprecated void getProduct (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
void getSum (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, bool noudf, bool parallel)
 computes the sum array between two arrays More...
 
template<class T >
mDeprecated void getSum (const ArrayND< T > &in1, const ArrayND< T > &in2, ArrayND< T > &out, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getSumProduct (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf, bool parallel)
 returns the sum of product amplitudes between two vectors More...
 
template<class T >
double getSumProductD (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf, bool parallel)
 
template<class T >
mDeprecated void getSumProduct (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getSumSq (const ArrayND< T > &in, bool noudf, bool parallel)
 returns the sum of squarred amplitudes of the array More...
 
template<class T >
mDeprecatedgetSumSq (const ArrayND< T > &in, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getNorm2 (const ArrayND< T > &in, bool noudf, bool parallel)
 return the Norm-2 of the array More...
 
template<class T >
double getNorm2D (const ArrayND< T > &in, bool noudf, bool parallel)
 
template<class T >
mDeprecatedgetNorm2 (const ArrayND< T > &in, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getRMS (const ArrayND< T > &in, bool noudf, bool parallel)
 return the RMS of the array More...
 
template<class T >
mDeprecatedgetRMS (const ArrayND< T > &in, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getResidual (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf, bool parallel)
 returns the residual differences of two arrays More...
 
template<class T >
mDeprecatedgetResidual (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getSumXMY2 (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf, bool parallel)
 returns the sum of squarred differences of two arrays More...
 
template<class T >
T mDeprecated getSumXMY2 (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getSumX2PY2 (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf, bool parallel)
 returns the sum of summed squarred amplitudes of two arrays More...
 
template<class T >
T mDeprecated getSumX2PY2 (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf)
 will be removed after 6.0 More...
 
template<class T >
getSumX2MY2 (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf, bool parallel)
 returns the sum of subtracted squarred amplitudes of two arrays More...
 
template<class T >
T mDeprecated getSumX2MY2 (const ArrayND< T > &in1, const ArrayND< T > &in2, bool noudf)
 will be removed after 6.0 More...
 
template<class T , class fT >
bool getInterceptGradient (const ArrayND< T > &iny, const ArrayND< T > *inx_, T &intercept, T &gradient)
 returns the intercept and gradient of two arrays More...
 

Variables

const T inpval = arrin_[idx]
 
 arrout_ [idx] = fact_ * inpval + shift_
 
const T val1 = arr1_[idx]
 
const T val2 = arr2_[idx]
 
 out_ [idx] = fact1_ * val1 + fact2_ * val2
 

Function Documentation

template<class T >
T ArrayMath::getAverage ( const ArrayND< T > &  in,
bool  noudf,
bool  parallel 
)
inline

returns the average amplitude of the array

template<class T >
T mDeprecated ArrayMath::getAverage ( const ArrayND< T > &  in,
bool  noudf 
)
inline

will be removed after 6.0

template<>
float_complex ArrayMath::getAverage< float_complex > ( const ArrayND< float_complex > &  in,
bool  noudf,
bool  parallel 
)
inline

Specialization for complex numbers.

template<>
float_complex mDeprecated ArrayMath::getAverage< float_complex > ( const ArrayND< float_complex > &  in,
bool  noudf 
)
inline

will be removed after 6.0

template<class T , class fT >
bool ArrayMath::getInterceptGradient ( const ArrayND< T > &  iny,
const ArrayND< T > *  inx_,
T &  intercept,
T &  gradient 
)
inline

returns the intercept and gradient of two arrays

template<class T >
T ArrayMath::getNorm2 ( const ArrayND< T > &  in,
bool  noudf,
bool  parallel 
)
inline

return the Norm-2 of the array

template<class T >
mDeprecated T ArrayMath::getNorm2 ( const ArrayND< T > &  in,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
double ArrayMath::getNorm2D ( const ArrayND< T > &  in,
bool  noudf,
bool  parallel 
)
inline
template<class T >
void ArrayMath::getProduct ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
bool  noudf,
bool  parallel 
)
inline

computes the product array between two arrays

template<class T >
mDeprecated void ArrayMath::getProduct ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
T ArrayMath::getResidual ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf,
bool  parallel 
)
inline

returns the residual differences of two arrays

template<class T >
mDeprecated T ArrayMath::getResidual ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
T ArrayMath::getRMS ( const ArrayND< T > &  in,
bool  noudf,
bool  parallel 
)
inline

return the RMS of the array

template<class T >
mDeprecated T ArrayMath::getRMS ( const ArrayND< T > &  in,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
mDeprecated void ArrayMath::getScaled ( const ArrayND< T > &  in,
ArrayND< T > *  out_,
fact,
shift,
bool  noudf,
bool  parallel 
)
inline

will be removed after 6.0

template<class T >
mDeprecated void ArrayMath::getScaled ( const ArrayND< T > &  in,
ArrayND< T > *  out_,
fact,
shift,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
void ArrayMath::getScaledArray ( const ArrayND< T > &  in,
ArrayND< T > *  out_,
double  fact,
double  shift,
bool  noudf,
bool  parallel 
)
inline

returns a scaled array

template<class T >
T ArrayMath::getSum ( const ArrayND< T > &  in,
bool  noudf,
bool  parallel 
)
inline

returns the sum of all defined values in the Array. Returns UDF if empty or only udfs encountered.

template<>
float_complex ArrayMath::getSum ( const ArrayND< float_complex > &  in,
bool  noudf,
bool  parallel 
)
inline
template<class T >
T mDeprecated ArrayMath::getSum ( const ArrayND< T > &  in,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
mDeprecated void ArrayMath::getSum ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
fact1,
fact2,
bool  noudf,
bool  parallel 
)
inline

will be removed after 6.0

template<class T >
mDeprecated void ArrayMath::getSum ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
fact1,
fact2,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
void ArrayMath::getSum ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
bool  noudf,
bool  parallel 
)
inline

computes the sum array between two arrays

template<class T >
mDeprecated void ArrayMath::getSum ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
void ArrayMath::getSumArrays ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
ArrayND< T > &  out,
double  fact1,
double  fact2,
bool  noudf,
bool  parallel 
)
inline

computes the sum array between two arrays with scaling

template<class T >
T ArrayMath::getSumProduct ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf,
bool  parallel 
)
inline

returns the sum of product amplitudes between two vectors

template<class T >
mDeprecated void ArrayMath::getSumProduct ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
double ArrayMath::getSumProductD ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf,
bool  parallel 
)
inline
template<class T >
T ArrayMath::getSumSq ( const ArrayND< T > &  in,
bool  noudf,
bool  parallel 
)
inline

returns the sum of squarred amplitudes of the array

template<class T >
mDeprecated T ArrayMath::getSumSq ( const ArrayND< T > &  in,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
T ArrayMath::getSumX2MY2 ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf,
bool  parallel 
)
inline

returns the sum of subtracted squarred amplitudes of two arrays

template<class T >
T mDeprecated ArrayMath::getSumX2MY2 ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
T ArrayMath::getSumX2PY2 ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf,
bool  parallel 
)
inline

returns the sum of summed squarred amplitudes of two arrays

template<class T >
T mDeprecated ArrayMath::getSumX2PY2 ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf 
)
inline

will be removed after 6.0

template<class T >
T ArrayMath::getSumXMY2 ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf,
bool  parallel 
)
inline

returns the sum of squarred differences of two arrays

template<class T >
T mDeprecated ArrayMath::getSumXMY2 ( const ArrayND< T > &  in1,
const ArrayND< T > &  in2,
bool  noudf 
)
inline

will be removed after 6.0

ArrayMath::if ( !noudf_ &&  mIsUdf(inpval))
ArrayMath::if ( !noudf_ &&  mIsUdf(val1)||mIsUdf(val2))
template<class T >
ArrayMath::mDefParallelCalc4Pars ( ProdExec  ,
od_static_tr("ProdExec","Array product executor")  ,
const T *  ,
arr1  ,
const T *  ,
arr2  ,
T *  ,
out  ,
bool  ,
noudf   
)
template<class T >
ArrayMath::mDefParallelCalc5Pars ( ScalingExec  ,
od_static_tr("ScalingExec","Array scaler executor")  ,
const T *  ,
arrin  ,
T *  ,
arrout  ,
,
fact  ,
,
shift  ,
bool  ,
noudf   
)
template<class T >
ArrayMath::mDefParallelCalc6Pars ( SumExec  ,
od_static_tr("SumExec","Array addition executor")  ,
const T *  ,
arr1  ,
const T *  ,
arr2  ,
T *  ,
out  ,
,
fact1  ,
,
fact2  ,
bool  ,
noudf   
)

Variable Documentation

ArrayMath::arrout_[idx] = fact_ * inpval + shift_
const T ArrayMath::inpval = arrin_[idx]
ArrayMath::out_[idx] = fact1_ * val1 + fact2_ * val2
const T ArrayMath::val1 = arr1_[idx]
const T ArrayMath::val2 = arr2_[idx]

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019