Dew MtxVec NET
TMtxVec.Abs Methods
Summary
Absolute values.

Class
TMtxVec

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

Description
Calculate the absolute value for calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.
Declaration
Function Abs: TMtxVec;

Description
Calculate the absolute value of all calling object elemets in-place.
 See Also 
Mag 

Example 1

var a: TVec; c: TSample; begin CreateIt(a); a.SetIt(True,[1,-2,3,4]); a.Abs; FreeIt(a); end;


Declaration
Function Abs(X: TMtxVec; XIndex, Index, Len: integer): TMtxVec;

Description
Calculate the absolute value of X object elements [XIndex]..[XIndex+Len-1] and store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.
Declaration
Function Abs(X: TMtxVec): TMtxVec;

Description
Calculate the absolute value for all X object and store the results in the calling object. Size and
Complex property of calling object are adjusted automatically.

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