ClMtxExpr.ThreshTop Method

Overload List

#SignatureDescription
1function ThreshTop(X: TOpenCLMatrix; Value: Double): clMatrix;Limit the largest value in the source data.
2function ThreshTop(X: TOpenCLValue; Value: Double): clValue;Limit the largest value in the source data.
3function ThreshTop(X: TOpenCLVector; Value: Double): clVector;Limit the largest value in the source data.

Overload 1: function ThreshTop(X: TOpenCLMatrix; Value: Double): clMatrix;

Limit the largest value in the source data.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix
2ValueDoublescalar

Returns: clMatrix

Remarks:

Internally calls clMatrix.ThreshTop

Overload 2: function ThreshTop(X: TOpenCLValue; Value: Double): clValue;

Limit the largest value in the source data.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue
2ValueDoublescalar

Returns: clValue

Remarks:

Internally calls clValue.ThreshTop

Examples
var a,b: clValue;
begin
    b.Copy(3);
    a.ThreshTop(b, 0.2); // a = [0.2]
end;

Overload 3: function ThreshTop(X: TOpenCLVector; Value: Double): clVector;

Limit the largest value in the source data.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector
2ValueDoublescalar

Returns: clVector

Remarks:

Internally calls clVector.ThreshTop