ClMtxExpr.ThreshTop Method

Overload List

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

Overload 1: clMatrix ThreshTop(TOpenCLMatrix X, Double Value)

Limit the largest value in the source data.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix
2ValueDoublescalar

Returns: clMatrix

Remarks:

Internally calls Dew.Math.clMatrix.ThreshTop

Overload 2: clValue ThreshTop(TOpenCLValue X, Double Value)

Limit the largest value in the source data.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue
2ValueDoublescalar

Returns: clValue

Remarks:

Internally calls Dew.Math.clValue.ThreshTop

Examples
using Dew.Math;
using Dew.Math.Units;

namespace Dew.Examples
{
    void Example()
    {
        TOpenCLValue a, b;
        clMtxVec.CreateIt(out a, out b);
        try
        {
            b.Copy(0.1);
            a.ThreshTop(b, 0.2); // a = [0.2]
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}

Overload 3: clVector ThreshTop(TOpenCLVector X, Double Value)

Limit the largest value in the source data.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector
2ValueDoublescalar

Returns: clVector

Remarks:

Internally calls Dew.Math.clVector.ThreshTop