Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure SinhCosh(const SinhX: TOpenCLMtxVec; const CoshX: TOpenCLMtxVec); | Hyperbolic sine and cosine. |
| 2 | procedure SinhCosh(const SinhX: TOpenCLMtxVec; const CoshX: TOpenCLMtxVec; SinhIndex: Integer; CoshIndex: Integer; Index: Integer; Len: Integer); | Calculates the hyperbolic sine and hyperbolic cosine for calling object elements [Index]..[Index+Len-1]. |
Overload 1: procedure SinhCosh(const SinhX: TOpenCLMtxVec; const CoshX: TOpenCLMtxVec);
Hyperbolic sine and cosine.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SinhX | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | CoshX | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object)
Calculates the hyperbolic sine and hyperbolic cosine for all calling object elements and stores the sines to SinhX and cosines to CoshX. Size and TOpenCLBase.Complex property of SinhX and CoshX are adjusted automatically.
Note
Use this method if you require hyperbolic sine and hyperbolic cosine.
var a: clMatrix;
s,c: clMatrix;
begin
a.CopyFromArray(2,2,TSingleArray.Create(0,PiDiv2,PI,0));
a.SinhCosh(s,c);
end;
Overload 2: procedure SinhCosh(const SinhX: TOpenCLMtxVec; const CoshX: TOpenCLMtxVec; SinhIndex: Integer; CoshIndex: Integer; Index: Integer; Len: Integer);
Calculates the hyperbolic sine and hyperbolic cosine for calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SinhX | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | CoshX | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 3 | SinhIndex | Integer | |
| 4 | CoshIndex | Integer | |
| 5 | Index | Integer | start index |
| 6 | Len | Integer | element count |
Result: stored in self (calling object)
Stores the sines to SinhX elements [SinhIndex]..[SinhIndex+Len-1] and cosines to CoshX elements [CoshIndex]..[CoshIndex+Len-1] elements. Size and TOpenCLBase.Complex property of SinhX and CoshX objects are not set automatically. An exception is raised if array borders are overrun/underun.