clValue::ThreshTop Method

TOpenCLValue *ThreshTop(TOpenCLValue *Src, double Value) const;

Threshold top operation.

#NameTypeDescription
1SrcTOpenCLValue *
2Valuedouble
Remarks:

Perform threshold operation on Src object value. The Value parameter is an upper bound for threshold operation. All values bigger 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(3);
    a.ThreshTop(b, 0.2); // a = [0.2]
}
See Also: clValue::ThreshTop
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler