Vector.ConjMul Method

Overload List

#SignatureDescription
1TMtxVec ConjMul(TMtxVec Vec)Conjugate and multiply.
└ indexed: TMtxVec ConjMul(TMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
2TMtxVec ConjMul(TMtxVec Vec1, TMtxVec Vec2)Conjugate each of Vec2 elements and multiply them with corresponding elements in Vec1.
└ indexed: TMtxVec ConjMul(TMtxVec Vec1, TMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)

Overload 1: TMtxVec ConjMul(TMtxVec Vec)

Conjugate and multiply.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx

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

Remarks:

Conjugate each of Vec elements and multiply them with corresponding elements in the calling object. The results are stored in the calling object. Size and Dew.Math.Vector.Complex properties of the calling object are set implicitly to match Vec.

Examples
Vector a;
Vector b;
Vector c;
a.SetIt(true,new double[] {1,2,3,4});
b.SetIt(true,new double[] {4,3,2,1});
c.ConjMul(a,b);
See Also: Vector.Conj, Vector.Mul

Indexed: TMtxVec ConjMul(TMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)

Conjugate Vec elements Vec[VecIndex]..Vec[VecIndex+Len-1] and multiply them with corresponding calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2VecIndexInt32
3IndexInt32start index
4LenInt32element count

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

Remarks:

The results are stored in the calling object elements [Index]..[Index+Len-1]. Size and Dew.Math.Vector.Complex properties are not set. An exception is raised if Dew.Math.Vector.ConditionCheck is true and array borders are overrun or underrun.

Overload 2: TMtxVec ConjMul(TMtxVec Vec1, TMtxVec Vec2)

Conjugate each of Vec2 elements and multiply them with corresponding elements in Vec1.

#NameTypeDescription
1Vec1TMtxVecsource TVec or TMtx
2Vec2TMtxVecsource TVec or TMtx

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

Remarks:

The results are stored in the calling object. Size and Dew.Math.Vector.Complex properties of the calling object are set implicitly to match Vec1 and Vec2 objects.

Indexed: TMtxVec ConjMul(TMtxVec Vec1, TMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)

Conjugate Vec2 elements [Vec2Index]..[Vec2Index+Len-1] and multiply them with corresponding Vec1 elements [Vec1Index]..[Vec1Index+Len-1].

#NameTypeDescription
1Vec1TMtxVecsource TVec or TMtx
2Vec2TMtxVecsource TVec or TMtx
3Vec1IndexInt32
4Vec2IndexInt32
5IndexInt32start index
6LenInt32element count

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

Remarks:

The results are stored in the calling object elements [Index]..[Index+Len-1]. Size and Dew.Math.Vector.Complex properties of the calling vector must be set explicitly. An exception is raised if Dew.Math.Vector.ConditionCheck is true and array borders are overrun.