Dew MtxVec NET
TMtxVec.Log2 Methods
Summary
Log base 2.

Class
TMtxVec

Declaration
Function Log2(X: TMtxVec): TMtxVec;

Description
Calculate the log base 2 for all X elements and store the results in the calling object. Size and Complex properties of the calling vector are set implicitly to match the X object.
Declaration
Function Log2: TMtxVec;

Description
Calculate the log base 2 for all calling object elements in-place.
 See Also 
Exp2 

Example 1

var a: TVec; begin CreateIt(a); try a.SetIt(False,[1,2,4,8]); a.Log2; finally FreeIt(a); end; end;


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

Description
Calculate the log base 2 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 Log2(Index, Len: integer): TMtxVec;

Description
Calculate the log base 2 for calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if ConditionCheck is True and array borders are overrun.

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