TSparseMtx::IntPower Method

Overload List

#SignatureDescription
1TMtxVec *IntPower(int Exponent);Power (integer exponent).
2TMtxVec *IntPower(TMtxVec *Base, int Exponent);Calculate the power Base^(Exponent) for all Base object elements.

Overload 1: TMtxVec *IntPower(int Exponent);

Power (integer exponent).

#NameTypeDescription
1Exponentint
Remarks:

Calculate the power ^(Exponent) for all caling object elements using the integer parameter Exponent. For non integer exponents, the TSparseMtx::Power and TSparseMtx::PowerVec methods can be used.

See Also: TSparseMtx::Power, TSparseMtx::PowerVec
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *IntPower(TMtxVec *Base, int Exponent);

Calculate the power Base^(Exponent) for all Base object elements.

#NameTypeDescription
1BaseTMtxVec *
2Exponentint
Remarks:

Calclation uses the integer Exponent value and stores the results in calling object. Size and TSparseMtx::Complex properties of calling object are adjusted automatically.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler