ClMtxExpr.ThreshBottom Method

Overload List

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

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

Limit the smallest value in the source data.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix
2ValueDoublescalar

Returns: clMatrix

Remarks:

Internally calls Dew.Math.clMatrix.ThreshBottom

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

Limit the smallest value in the source data.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue
2ValueDoublescalar

Returns: clValue

Remarks:

Internally calls Dew.Math.clValue.ThreshBottom

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.ThreshBottom(b, 0.2); // a = [0.2]
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}

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

Limit the smallest value in the source data.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector
2ValueDoublescalar

Returns: clVector

Remarks:

Internally calls Dew.Math.clVector.ThreshBottom