Overload List
| # | Signature | Description |
|---|---|---|
| 1 | clMatrix ThreshTop(TOpenCLMatrix X, Double Value) | Limit the largest value in the source data. |
| 2 | clValue ThreshTop(TOpenCLValue X, Double Value) | Limit the largest value in the source data. |
| 3 | clVector 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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMatrix | source TOpenCLMatrix |
| 2 | Value | Double | scalar |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
| 2 | Value | Double | scalar |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLVector | source TOpenCLVector |
| 2 | Value | Double | scalar |
Returns: clVector
Remarks:
Internally calls Dew.Math.clVector.ThreshTop