Overload List
Overload 1: TMtxVec *SubScaledC(TMtxVec *X, TMtxVec *Y, const double yScale, const double Z) const;
Compute X - Y*yScale - zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | yScale | const double | |
| 4 | Z | const double |
Examples
#include "MtxExpr.h"
#include "Units.Math387.h"
#include "Units.MtxExpr.h"
#include "Units.MtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
using namespace Dew::Math::Units::MtxExpr;
using namespace Dew::Math::Units::MtxVec;
void Example()
{
Vector X, Y, A1, A2, A3;
double xScale, yScale, zScalar;
xScale = 1.0;
yScale = 2.0;
zScalar = 3.0;
X = {5, 6, 7, 8};
Y = {1, 2, 3, 4};
A1 = X * xScale - Y * yScale - zScalar;
A2 = SubScaledC(X, xScale, Y, yScale, zScalar);
A3.SubScaledC(X, xScale, Y, yScale, zScalar);
if (!A2.IsEqual(A1))
ERaise("Problem");
if (!A3.IsEqual(A1))
ERaise("Problem");
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: TMtxVec *SubScaledC(TMtxVec *X, TMtxVec *Y, const TCplx &yScale, const TCplx &Z) const;
Compute X - Y*yScale - zScalar
Examples
#include "MtxExpr.h"
#include "Units.Math387.h"
#include "Units.MtxExpr.h"
#include "Units.MtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
using namespace Dew::Math::Units::MtxExpr;
using namespace Dew::Math::Units::MtxVec;
void Example()
{
Vector X, Y, A1, A2, A3;
double yScale, zScalar;
yScale = 1.5;
zScalar = 3.0;
X = {5, 6, 7, 8};
Y = {1, 2, 3, 4};
A1 = X - Y * yScale - zScalar;
A2 = SubScaledC(X, Y, yScale, zScalar);
A3.SubScaledC(X, Y, yScale, zScalar);
if (!A2.IsEqual(A1))
ERaise("Problem");
if (!A3.IsEqual(A1))
ERaise("Problem");
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 3: TMtxVec *SubScaledC(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double yScale, const double Z, int Index, int Len) const;
Compute X - Y*yScale - zScalar on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | yScale | const double | |
| 6 | Z | const double | |
| 7 | Index | int | |
| 8 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 4: TMtxVec *SubScaledC(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const TCplx &yScale, const TCplx &Z, int Index, int Len) const;
Compute X - Y*yScale - zScalar on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | yScale | const TCplx & | |
| 6 | Z | const TCplx & | |
| 7 | Index | int | |
| 8 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 5: TMtxVec *SubScaledC(TMtxVec *X, const double xScale, TMtxVec *Y, const double yScale, const double Z) const;
Compute X*xScale - Y*yScale - zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | xScale | const double | |
| 3 | Y | TMtxVec * | |
| 4 | yScale | const double | |
| 5 | Z | const double |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 6: TMtxVec *SubScaledC(TMtxVec *X, const TCplx &xScale, TMtxVec *Y, const TCplx &yScale, const TCplx &Z) const;
Compute X*xScale - Y*yScale - zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | xScale | const TCplx & | |
| 3 | Y | TMtxVec * | |
| 4 | yScale | const TCplx & | |
| 5 | Z | const TCplx & |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 7: TMtxVec *SubScaledC(TMtxVec *X, int XIndex, const double xScale, TMtxVec *Y, int YIndex, const double yScale, const double Z, int Index, int Len) const;
Compute X*xScale - Y*yScale - zScalar on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | xScale | const double | |
| 4 | Y | TMtxVec * | |
| 5 | YIndex | int | |
| 6 | yScale | const double | |
| 7 | Z | const double | |
| 8 | Index | int | |
| 9 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler