Vector.SgnMul Method

TMtxVec SgnMul(TMtxVec Src)

Signum.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

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

Remarks:

Calculates the signum of all Src object elements and multiplies it with the calling object elements accordingly. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.

Note
The length of Src and of the calling object must match or an exception will be raised.

Size and Dew.Math.Vector.Complex property of calling object are adjusted automatically.