TSparseMtx.Conj Method

Overload List

#SignatureDescription
1function Conj: TMtxVec; overload;Conjugate.
└ indexed: function Conj(Index,Len: integer): TMtxVec; overload;
2function Conj(const Vec: TMtxVec): TMtxVec; overload;Conjugate each of Vec elements.
└ indexed: function Conj(const Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec; overload;

Overload 1: function Conj: TMtxVec; overload;

Conjugate.

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

Remarks:

Conjugate all calling object elements in-place.

Examples
var c: Matrix;
begin
    c := [[Cplx(1,2),Cplx(3,4)]];  // c = [1+2i, 3+4i]
    c.Conj;                   // c = [1-2i, 3-4i]
end;

Indexed: function Conj(Index,Len: integer): TMtxVec; overload;

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 TMtxVecBase.ConditionCheck is true and array borders are overrun.

Overload 2: function Conj(const Vec: TMtxVec): TMtxVec; overload;

Conjugate each of Vec elements.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx

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

Remarks:

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

Indexed: function Conj(const Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec; overload;

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

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
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 TMtxVec.Complex properties of the calling object must be set explicitly. An exception is raised if TMtxVecBase.ConditionCheck is true and array borders are overrun.