TOpenCLMatrix.Conj Method

Overload List

#SignatureDescription
1function Conj: TOpenCLMtxVec;Conjugate.
└ indexed: function Conj(Index: Integer; Len: Integer): TOpenCLMtxVec;
2function Conj(const Vec: TOpenCLMtxVec): TOpenCLMtxVec;Conjugate each of Vec elements.
└ indexed: function Conj(const Vec: TOpenCLMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;

Overload 1: function Conj: TOpenCLMtxVec;

Conjugate.

Result: stored in self (calling object), returns self for chaining

Remarks:

Conjugate all calling object elements in-place.

Examples
var c: clMatrix;
begin
    c.CopyFromArray(2,2,TSingleArray.Create(1,2,3,4));  // c = [1+2i, 3+4i]
    c.Conj;                   // c = [1-2i, 3-4i]
end;

Indexed: function Conj(Index: Integer; Len: Integer): TOpenCLMtxVec;

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

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun.

Overload 2: function Conj(const Vec: TOpenCLMtxVec): TOpenCLMtxVec;

Conjugate each of Vec elements.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in the calling object. The Size and TOpenCLBase.Complex properties of the calling object are set implicitly to match Vec vector.

Indexed: function Conj(const Vec: TOpenCLMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;

Conjugate Vec elements Vec[VecIndex]..Vec[VecIndex+Len-1].

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2VecIndexInteger
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store them in the calling object elements [Index]..[Index+Len-1]. Size and TOpenCLBase.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun.