TOpenCLMatrix::SinhCosh Method

Overload List

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

Overload 1: void SinhCosh(TOpenCLBase *SinhX, TOpenCLBase *CoshX, int SinhIndex, int CoshIndex, int Index, int Len);

#NameTypeDescription
1SinhXTOpenCLBase *
2CoshXTOpenCLBase *
3SinhIndexint
4CoshIndexint
5Indexint
6Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

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

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 TOpenCLBase::Complex property of SinhX and CoshX are adjusted automatically.

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

Examples
#include "Math387.h"
#include "clMtxVec.h"
#include "Units.clMtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::ClMtxVec;

void Example()
{
    TOpenCLVector *a, *s, *c;
    CreateIt(a, s, c);
    a->CopyFromArray( DewArray<double>{0,PIDIV2,PI});
    a->SinhCosh(s,c);
    FreeIt(a, s, c);
}
See Also: TOpenCLMatrix::Sinh, TOpenCLMatrix::Cosh
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

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 TOpenCLBase::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::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler