Dew MtxVec NET
TMtxVec.Exp2 Methods
Summary
Exponent base 2 (2^).

Class
TMtxVec

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

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

Description
Calculate the exponent base 2 (2^) 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 Exp2: TMtxVec;

Description
Calculate the exponent base 2 (2^) for all calling object elements in-place.
 See Also 
Log2 

Example 1

var a: TVec; begin CreateIt(a); try a.SetIt(False,[1,2,3,4]); // a = [1,2,3,4] a.Exp2; // a = [2,4,8,16] finally FreeIt(a); end; end;


Declaration
Function Exp2(X: TMtxVec): TMtxVec;

Description
Calculate the exponent base 2 (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.

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