clVector.SinhCosh Method

Overload List

#SignatureDescription
1procedure SinhCosh(SinhX: TOpenCLMtxVec; CoshX: TOpenCLMtxVec);Hyperbolic sine and cosine.
2procedure SinhCosh(SinhX: TOpenCLMtxVec; 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(SinhX: TOpenCLMtxVec; 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 clVector.Complex property of SinhX and CoshX are adjusted automatically.

Note
Use this method if you require hyperbolic sine and hyperbolic cosine.

Examples
var a: clVector;
    s,c: clVector;
begin
    a.CopyFromArray(TSingleArray.Create(0,PiDiv2,PI));
    a.SinhCosh(s,c);
end;
See Also: clVector.Sinh, clVector.Cosh

Overload 2: procedure SinhCosh(SinhX: TOpenCLMtxVec; 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 clVector.Complex property of SinhX and CoshX objects are not set automatically. An exception is raised if array borders are overrun/underun.