TOpenCLMatrix.SinhCosh Method

Overload List

#SignatureDescription
1procedure SinhCosh(const SinhX: TOpenCLMtxVec; const CoshX: TOpenCLMtxVec);Hyperbolic sine and cosine.
2procedure 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.

#NameTypeDescription
1SinhXTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2CoshXTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object)

Remarks:

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.

Examples
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].

#NameTypeDescription
1SinhXTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2CoshXTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
3SinhIndexInteger
4CoshIndexInteger
5IndexIntegerstart index
6LenIntegerelement count

Result: stored in self (calling object)

Remarks:

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.