TMtxVec *PowerVec(TMtxVec *Base, TMtxVec *Exponent);
Raises Base object elements to Exponent object elements power.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | TMtxVec * | |
| 2 | Exponent | TMtxVec * |
Remarks:
Raises Base elements to Exponent elements power. Only positive exponents can be handled if exponent object TMtx::Complex property is True.
Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;
void Example()
{
TVec *a, *b, *c;
CreateIt(a, b, c);
a->SetIt(true, DewArray<double>{1,2,3,4});
b->SetIt(true, DewArray<double>{3,2,2,2});
c->PowerVec(a,b);
FreeIt(a, b, c);
}
See Also: TMtx::Power
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler