clMatrix::SinhCosh Method

Overload List

#SignatureDescription
1void SinhCosh(TOpenCLMtxVec *SinhX, TOpenCLMtxVec *CoshX) const;Hyperbolic sine and cosine.
2void SinhCosh(TOpenCLMtxVec *SinhX, TOpenCLMtxVec *CoshX, int SinhIndex, int CoshIndex, int Index, int Len) const;Calculates the hyperbolic sine and hyperbolic cosine for calling object elements [Index]..[Index+Len-1].

Overload 1: void SinhCosh(TOpenCLMtxVec *SinhX, TOpenCLMtxVec *CoshX) const;

Hyperbolic sine and cosine.

#NameTypeDescription
1SinhXTOpenCLMtxVec *
2CoshXTOpenCLMtxVec *
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 clMatrix::Complex property of SinhX and CoshX are adjusted automatically.

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

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clMatrix a;
    clMatrix s, c;

    a.CopyFromArray(2, 2, DewArray<float>{0, PIDIV2, PI, 0});
    a.SinhCosh(s, c);
}
See Also: clMatrix::Sinh, clMatrix::Cosh
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: void SinhCosh(TOpenCLMtxVec *SinhX, TOpenCLMtxVec *CoshX, int SinhIndex, int CoshIndex, int Index, int Len) const;

Calculates the hyperbolic sine and hyperbolic cosine for calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SinhXTOpenCLMtxVec *
2CoshXTOpenCLMtxVec *
3SinhIndexint
4CoshIndexint
5Indexint
6Lenint
Remarks:

Stores the sines to SinhX elemets [SinhIndex]..[SinhIndex+Len-1] and cosines to CoshX elements [CoshIndex]..[CoshIndex+Len-1] elements. Size and clMatrix::Complex property of SinhX and CoshX objects are not set automatically. An exception is raised if array borders are overrun/underun.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler