Vector::IntPower Method

Overload List

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

Overload 1: TMtxVec *IntPower(int Exponent) const;

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 Vector::Power and Vector::PowerVec methods can be used.

See Also: Vector::Power, Vector::PowerVec
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

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

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

#NameTypeDescription
1BaseTMtxVec *
2Exponentint
Remarks:

Store the results in calling object. Size and Vector::Complex properties of calling object are adjusted automatically.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler