TOpenCLValue::ThreshBottom Method

Overload List

#SignatureDescription
1TOpenCLBase *ThreshBottom(TOpenCLBase *Vec, const double Value, int VecIndex, int Index, int Len);
2TOpenCLValue *ThreshBottom(TOpenCLValue *Src, double Value);Threshold bottom operation.

Overload 1: TOpenCLBase *ThreshBottom(TOpenCLBase *Vec, const double Value, int VecIndex, int Index, int Len);

#NameTypeDescription
1VecTOpenCLBase *
2Valueconst double
3VecIndexint
4Indexint
5Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLValue *ThreshBottom(TOpenCLValue *Src, double Value);

Threshold bottom operation.

#NameTypeDescription
1SrcTOpenCLValue *
2Valuedouble
Remarks:

Perform threshold operation on Src. The Value parameter is a lower bound for the threshold operation. Src value smaller than Value will be replaced with Value.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b;

    b.Copy(0.1);
    a.ThreshBottom(b, 0.2); // a = [0.2]
}
See Also: TOpenCLValue::ThreshTop
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler