Overload List
| # | Signature | Description |
|---|---|---|
| 1 | clMatrix Frac(TOpenCLMatrix X) | Return the fractional part of a real number in the source. |
| 2 | clValue Frac(TOpenCLValue X) | Return the fractional part of a real number in the source. |
| 3 | clVector Frac(TOpenCLVector X) | Return the fractional part of a real number in the source. |
Overload 1: clMatrix Frac(TOpenCLMatrix X)
Return the fractional part of a real number in the source.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMatrix | source TOpenCLMatrix |
Returns: clMatrix
Remarks:
Internally calls Dew.Math.clMatrix.Frac
Overload 2: clValue Frac(TOpenCLValue X)
Return the fractional part of a real number in the source.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
Returns: clValue
Remarks:
Internally calls Dew.Math.clValue.Frac
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(2.3);
a.Frac(b); // a = 0.3
}
finally
{
clMtxVec.FreeIt(ref a, ref b);
}
}
}
Overload 3: clVector Frac(TOpenCLVector X)
Return the fractional part of a real number in the source.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLVector | source TOpenCLVector |
Returns: clVector
Remarks:
Internally calls Dew.Math.clVector.Frac