TOpenCLValue *ThreshTop(TOpenCLValue *Src, double Value) const;
Threshold top operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue * | |
| 2 | Value | double |
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