Matrix::PowerVec Method

TMtxVec *PowerVec(TMtxVec *Base, TMtxVec *Exponent) const;

Raises Base object elements to Exponent object elements power.

#NameTypeDescription
1BaseTMtxVec *
2ExponentTMtxVec *
Remarks:

Raises Base elements to Exponent elements power. Only positive exponents can be handled if exponent object Matrix::Complex property is True.

Examples
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Matrix a, b, c;

    a.SetIt(1, 2, true, DewArray<double>{1, 2, 3, 4});
    b.SetIt(1, 2, true, DewArray<double>{3, 3, 2, 2});
    c.PowerVec(a, b); // c = [1,8,9,16]
}
See Also: Matrix::Power
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler