Overload List
| # | Signature | Description |
|---|---|---|
| 1 | clMatrix Tanh(TOpenCLMatrix X) | Result = the Tanh function from the source and return the result |
| 2 | clValue Tanh(TOpenCLValue X) | Result = the Tanh function from the source and return the result |
| 3 | clVector Tanh(TOpenCLVector X) | Result = the Tanh function from the source and return the result |
Overload 1: clMatrix Tanh(TOpenCLMatrix X)
Compute the Tanh function from the source and return the result.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMatrix | source TOpenCLMatrix |
Returns: clMatrix
Remarks:
Internally calls Dew.Math.clMatrix.Tanh
Overload 2: clValue Tanh(TOpenCLValue X)
Compute the Tanh function from the source and return the result.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
Returns: clValue
Remarks:
Internally calls Dew.Math.clValue.Tanh
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.5);
a.Tanh(b);
}
finally
{
clMtxVec.FreeIt(ref a, ref b);
}
}
}
Overload 3: clVector Tanh(TOpenCLVector X)
Compute the Tanh function from the source and return the result.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLVector | source TOpenCLVector |
Returns: clVector
Remarks:
Internally calls Dew.Math.clVector.Tanh