Dew MtxVec NET
TMtxVec.Mag Methods
Summary
Magnitude.

Class
TMtxVec

Declaration
Function Mag: TMtxVec;

Description
Calculate the magnitude for all calling object elements in-place. This method has the same function as the Abs method.
 See Also 
Abs 
PhaseSpectrum 

Example 1

var a: TVec; begin CreateIt(a); try a.SetIt(false,[1,-2,3,4]); // a = [1,-2, 3,4] a.Mag; // a = [1, 2, 3,4] finally FreeIt(a); end; end;


Declaration
Function Mag(Index, Len: integer): TMtxVec;

Description
Calculate the magnitude for calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if
ConditionCheck is True and array borders are overrun.
Declaration
Function Mag(X: TMtxVec; XIndex, Index, Len: integer): TMtxVec;

Description
Calculate the magnitude for X elements [XIndex]..[XIndex+Len-1] and store the results in the calling object elements [Index]..[Index+Len-1]. Size and Complex properties of the calling object must be set explicitly. An exception is raised if ConditionCheck is True and array borders are overrun.
Declaration
Function Mag(X: TMtxVec): TMtxVec;

Description
Calculate the magnitude for all X elements and store the results in the calling object elements. Size and and Complex properties of the calling vector are set implicitly to match Vec vector.

Copyright 2008 Dew Research
http://www.dewresearch.com