Overload List
Overload 1: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, TMtxVec *Z) const;
Compute X/Y - Z
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | TMtxVec * |
Examples
#include "MtxExpr.h"
#include "Units.Math387.h"
#include "Units.MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
using namespace Dew::Math::Units::MtxExpr;
void Example()
{
Vector X, Y, Z, A1, A2, A3;
double xyScale, zScale;
xyScale = 1.5;
zScale = 2.0;
X = {8, 10, 12, 14};
Y = {2, 2, 2, 2};
Z = {1, 1, 1, 1};
A1 = (X / Y) * xyScale - Z * zScale;
A2 = DivAndSub(X, Y, xyScale, Z, zScale);
A3.DivAndSub(X, Y, xyScale, Z, zScale);
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 *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len) const;
Compute X/Y - Z on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | Z | TMtxVec * | |
| 6 | zIndex | int | |
| 7 | Index | int | |
| 8 | Len | int |
Examples
#include "MtxExpr.h"
#include "Units.Math387.h"
#include "Units.MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
using namespace Dew::Math::Units::MtxExpr;
void Example()
{
Vector X, Y, A1, A2, A3;
double xyScale, zScalar;
xyScale = 1.5;
zScalar = 2.0;
X = {8, 10, 12, 14};
Y = {2, 2, 2, 2};
A1 = (X / Y) * xyScale - zScalar;
A2 = DivAndSub(X, Y, xyScale, zScalar);
A3.DivAndSub(X, Y, xyScale, 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 *DivAndSub(TMtxVec *X, TMtxVec *Y, const double xyScale, TMtxVec *Z) const;
Compute X/Y*xyScale - Z
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | xyScale | const double | |
| 4 | Z | TMtxVec * |
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, Z, A1, A2, A3;
X = {6, 8, 10, 12};
Y = {2, 2, 2, 2};
Z = {1, 1, 1, 1};
A1 = (X / Y) - Z; // using operators
A2 = DivAndSub(X, Y, Z); // using the function
A3.DivAndSub(X, Y, Z); // in-place operation
if (!A2.IsEqual(A1))
ERaise("Problem");
if (!A3.IsEqual(A1))
ERaise("Problem");
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 4: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const TCplx &xyScale, TMtxVec *Z) const;
Compute X/Y*xyScale - Z
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | xyScale | const TCplx & | |
| 4 | Z | TMtxVec * |
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, Z, A1, A2, A3;
double xyScale;
xyScale = 1.5;
X = {8, 10, 12, 14};
Y = {2, 2, 2, 2};
Z = {1, 1, 1, 1};
A1 = (X / Y) * xyScale - Z;
A2 = DivAndSub(X, Y, xyScale, Z);
A3.DivAndSub(X, Y, xyScale, Z);
if (!A2.IsEqual(A1))
ERaise("Problem");
if (!A3.IsEqual(A1))
ERaise("Problem");
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 5: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double xyScale, TMtxVec *Z, int zIndex, int Index, int Len) const;
Compute X/Y*xyScale - Z on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | xyScale | const double | |
| 6 | Z | TMtxVec * | |
| 7 | zIndex | int | |
| 8 | Index | int | |
| 9 | Len | int |
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, Z, A1, A2, A3;
double zScale;
zScale = 2.0;
X = {6, 8, 10, 12};
Y = {2, 2, 2, 2};
Z = {1, 1, 1, 1};
A1 = (X / Y) - (Z * zScale);
A2 = DivAndSub(X, Y, Z, zScale);
A3.DivAndSub(X, Y, Z, zScale);
if (!A2.IsEqual(A1))
ERaise("Problem");
if (!A3.IsEqual(A1))
ERaise("Problem");
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 6: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const TCplx &xyScale, TMtxVec *Z, int zIndex, int Index, int Len) const;
Compute X/Y*xyScale - Z on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | xyScale | const TCplx & | |
| 6 | Z | TMtxVec * | |
| 7 | zIndex | int | |
| 8 | Index | int | |
| 9 | Len | int |
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 zScalar;
zScalar = 2.0;
X = {6, 8, 10, 12};
Y = {2, 2, 2, 2};
A1 = (X / Y) - zScalar;
A2 = DivAndSub(X, Y, zScalar);
A3.DivAndSub(X, Y, 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 7: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, TMtxVec *Z, const double zScale) const;
Compute X/Y - Z*zScale
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | TMtxVec * | |
| 4 | zScale | const double |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 8: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, TMtxVec *Z, const TCplx &zScale) const;
Compute X/Y - Z*zScale
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | TMtxVec * | |
| 4 | zScale | const TCplx & |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 9: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, const double zScale, int Index, int Len) const;
Compute X/Y - Z*zScale on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | Z | TMtxVec * | |
| 6 | zIndex | int | |
| 7 | zScale | const double | |
| 8 | Index | int | |
| 9 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 10: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, const TCplx &zScale, int Index, int Len) const;
Compute X/Y - Z*zScale on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | Z | TMtxVec * | |
| 6 | zIndex | int | |
| 7 | zScale | const TCplx & | |
| 8 | Index | int | |
| 9 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 11: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const double Z) const;
Compute X/Y - zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | const double |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 12: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const TCplx &Z) const;
Compute X/Y - zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | const TCplx & |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 13: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double Z, int Index, int Len) const;
Compute X/Y - zScalar on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | Z | const double | |
| 6 | Index | int | |
| 7 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 14: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const TCplx &Z, int Index, int Len) const;
Compute X/Y - zScalar on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | Z | const TCplx & | |
| 6 | Index | int | |
| 7 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 15: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const double xyScale, TMtxVec *Z, const double zScale) const;
Compute (X / Y) * xyScale - Z*zScale
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | xyScale | const double | |
| 4 | Z | TMtxVec * | |
| 5 | zScale | const double |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 16: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double xyScale, TMtxVec *Z, int zIndex, const double zScale, int Index, int Len) const;
Compute (X / Y) * xyScale - Z on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | xyScale | const double | |
| 6 | Z | TMtxVec * | |
| 7 | zIndex | int | |
| 8 | zScale | const double | |
| 9 | Index | int | |
| 10 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 17: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const TCplx &xyScale, TMtxVec *Z, const TCplx &zScale) const;
Compute (X / Y) * xyScale - Z*zScale
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 18: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const TCplx &xyScale, TMtxVec *Z, int zIndex, const TCplx &zScale, int Index, int Len) const;
Compute (X / Y) * xyScale - Z on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | xyScale | const TCplx & | |
| 6 | Z | TMtxVec * | |
| 7 | zIndex | int | |
| 8 | zScale | const TCplx & | |
| 9 | Index | int | |
| 10 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 19: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const double xyScale, const double Z) const;
Compute (X / Y) * xyScale - zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | xyScale | const double | |
| 4 | Z | const double |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 20: TMtxVec *DivAndSub(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double xyScale, const double Z, int Index, int Len) const;
Compute (X / Y) * xyScale - zScalar on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVec * | |
| 4 | YIndex | int | |
| 5 | xyScale | const double | |
| 6 | Z | const double | |
| 7 | Index | int | |
| 8 | Len | int |
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler
Overload 21: TMtxVec *DivAndSub(TMtxVec *X, TMtxVec *Y, const TCplx &xyScale, const TCplx &Z) const;
Compute (X / Y) * xyScale - zScalar
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler