clMatrix::Sign Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *Sign() const;Changes elements sign.
2TOpenCLMtxVec *Sign(int Index, int Len) const;Change calling object elements [Index]..[Index+Len-1] sign in-place.
3TOpenCLMtxVec *Sign(TOpenCLMtxVec *X) const;Change all X object elements sign.
4TOpenCLMtxVec *Sign(TOpenCLMtxVec *X, int XIndex, int Index, int Len) const;Change X object elements [XIndex]..[XIndex+Len-1] sign.

Overload 1: TOpenCLMtxVec *Sign() const;

Changes elements sign.

Remarks:

Changes all calling object elements sign (v -> -v) in-place.

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

Overload 2: TOpenCLMtxVec *Sign(int Index, int Len) const;

Change calling object elements [Index]..[Index+Len-1] sign in-place.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if array borders are overrun or underrun.

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

Overload 3: TOpenCLMtxVec *Sign(TOpenCLMtxVec *X) const;

Change all X object elements sign.

#NameTypeDescription
1XTOpenCLMtxVec *
Remarks:

Store the results in calling object. Size and clMatrix::Complex properties of calling object are adjusted automatically.

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

Overload 4: TOpenCLMtxVec *Sign(TOpenCLMtxVec *X, int XIndex, int Index, int Len) const;

Change X object elements [XIndex]..[XIndex+Len-1] sign.

#NameTypeDescription
1XTOpenCLMtxVec *
2XIndexint
3Indexint
4Lenint
Remarks:

Store the results in callingobject elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.

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