Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec IntPower(TMtxVec Base, Int32 Exponent) | Calculate the power Base^(Exponent) for all Base object elements using the integer Exponent value and store the results in calling object. |
| 2 | TMtxVec IntPower(Int32 Exponent) | Power (integer exponent). |
Overload 1: TMtxVec IntPower(TMtxVec Base, Int32 Exponent)
Calculate the power Base^(Exponent) for all Base object elements using the integer Exponent value and store the results in calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TMtxVec | source TVec or TMtx |
| 2 | Exponent | Int32 |
Result: stored in self (calling object), returns self for chaining
Remarks:
Size and Dew.Math.Matrix.Complex properties of calling object are adjusted automatically.
Overload 2: TMtxVec IntPower(Int32 Exponent)
Power (integer exponent).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Exponent | Int32 |
Result: stored in self (calling object), returns self for chaining
Remarks:
Calculate the power ^(Exponent) for all caling object elements using the integer parameter Exponent. For non integer exponents, the Dew.Math.Matrix.Power and Dew.Math.Matrix.PowerVec methods can be used.
Examples
Matrix a;
Matrix b;
a.SetIt(2,2,false,new double[] {1,2,3,4});
a.IntPower(3); //same as:
a = IntPower(a,3);
b.IntPower(a,3); //same as:
b = IntPower(a,3);
See Also: Matrix.Power, Matrix.PowerVec