TVec::Divide Method

Overload List

#SignatureDescription
1TMtxVec *Divide(TMtxVec *X, TMtxVec *Y, TMtxVec *Z);Compute X / (Y*Z)
2TMtxVec *Divide(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len);Compute X/( Y*Z ) on sub array
3TMtxVec *Divide(const double X, TMtxVec *Y, TMtxVec *Z);Compute xScalar / (Y*Z)
4TMtxVec *Divide(const TCplx &X, TMtxVec *Y, TMtxVec *Z);Compute xScalar / (Y*Z)
5TMtxVec *Divide(const double X, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len);Compute xScalar / (Y*Z) on sub array
6TMtxVec *Divide(const TCplx &X, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len);Compute xScalar / (Y*Z) on sub array
7TMtxVec *Divide(TMtxVec *Vec, const double Threshold);Vector division.
8TMtxVec *Divide(TMtxVec *Vec, const double Threshold, int VecIndex, int Index, int Len);Divide each of Vec elements with corresponding elements in the calling object.
9TMtxVec *Divide(TMtxVec *Vec1, TMtxVec *Vec2, const double Threshold);Divide each of Vec1 elements with corresponding elements in the Vec2 object.
10TMtxVec *Divide(TMtxVec *Vec1, TMtxVec *Vec2, const double Threshold, int Vec1Index, int Vec2Index, int Index, int Len);Divide Vec1 elements [Vec1Index]...[Vec1Index+Len-1] with corresponding elements [Vec2Index]...[Vec2Index+Len-1] from the Vec object.
11TMtxVec *Divide(TMtxVec *Num, TMtxVec *Den);Divide each of Num elements with corresponding elements in Den.
12TMtxVec *Divide(TMtxVec *Vec);Divide each of calling vector elements with corresponding elements in the Vec object.
13TMtxVec *Divide(TMtxVec *Vec, int VecIndex, int Index, int Len);Divide calling vector elements [Index]...[Index+Len-1] with corresponding elements [VecIndex]...[VecIndex+Len-1] from the Vec object.
14TMtxVec *Divide(TMtxVec *Num, TMtxVec *Den, int NumIndex, int DenIndex, int Index, int Len);Divide [NumIndex]..[NumIndex+Len-1] Num elements with [DenIndex]..[DenIndex+Len-1] elements in Den.

Overload 1: TMtxVec *Divide(TMtxVec *X, TMtxVec *Y, TMtxVec *Z);

Compute X / (Y*Z)

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3ZTMtxVec *
Remarks:

The following expression would also run at the same or higher speed, when passing Y also for the Z parameter:

X / (Y^2)

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *Divide(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len);

Compute X/( Y*Z ) on sub array

#NameTypeDescription
1XTMtxVec *
2XIndexint
3YTMtxVec *
4YIndexint
5ZTMtxVec *
6zIndexint
7Indexint
8Lenint
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 3: TMtxVec *Divide(const double X, TMtxVec *Y, TMtxVec *Z);

Compute xScalar / (Y*Z)

#NameTypeDescription
1Xconst double
2YTMtxVec *
3ZTMtxVec *
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 4: TMtxVec *Divide(const TCplx &X, TMtxVec *Y, TMtxVec *Z);

Compute xScalar / (Y*Z)

#NameTypeDescription
1Xconst TCplx &
2YTMtxVec *
3ZTMtxVec *
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 5: TMtxVec *Divide(const double X, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len);

Compute xScalar / (Y*Z) on sub array

#NameTypeDescription
1Xconst double
2YTMtxVec *
3YIndexint
4ZTMtxVec *
5zIndexint
6Indexint
7Lenint
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 6: TMtxVec *Divide(const TCplx &X, TMtxVec *Y, int YIndex, TMtxVec *Z, int zIndex, int Index, int Len);

Compute xScalar / (Y*Z) on sub array

#NameTypeDescription
1Xconst TCplx &
2YTMtxVec *
3YIndexint
4ZTMtxVec *
5zIndexint
6Indexint
7Lenint
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 7: TMtxVec *Divide(TMtxVec *Vec, const double Threshold);

Vector division.

#NameTypeDescription
1VecTMtxVec *
2Thresholdconst double
Remarks:

Divide each of Vec elements with corresponding elements in the calling object. Size and TVec::Complex property of the calling object are set automatically. The result is stored in the calling object.

The threshold parameter is used to prevent against division by zero and numerical instabilities in the follow on processing. All values of Vec smaller than Threshold will be replaced with Threshold.

See Also: TVec::Mul
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 8: TMtxVec *Divide(TMtxVec *Vec, const double Threshold, int VecIndex, int Index, int Len);

Divide each of Vec elements with corresponding elements in the calling object.

#NameTypeDescription
1VecTMtxVec *
2Thresholdconst double
3VecIndexint
4Indexint
5Lenint
Remarks:

Store the result in the calling object. Size and TVec::Complex property of the calling object are set automatically.

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 9: TMtxVec *Divide(TMtxVec *Vec1, TMtxVec *Vec2, const double Threshold);

Divide each of Vec1 elements with corresponding elements in the Vec2 object.

#NameTypeDescription
1Vec1TMtxVec *
2Vec2TMtxVec *
3Thresholdconst double
Remarks:

Store the result in the calling vector.

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 10: TMtxVec *Divide(TMtxVec *Vec1, TMtxVec *Vec2, const double Threshold, int Vec1Index, int Vec2Index, int Index, int Len);

Divide Vec1 elements [Vec1Index]...[Vec1Index+Len-1] with corresponding elements [Vec2Index]...[Vec2Index+Len-1] from the Vec object.

#NameTypeDescription
1Vec1TMtxVec *
2Vec2TMtxVec *
3Thresholdconst double
4Vec1Indexint
5Vec2Indexint
6Indexint
7Lenint
Remarks:

Store the result in the calling vector [Index]...[Index+Len-1].

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 11: TMtxVec *Divide(TMtxVec *Num, TMtxVec *Den);

Divide each of Num elements with corresponding elements in Den.

#NameTypeDescription
1NumTMtxVec *
2DenTMtxVec *
Remarks:

Size and TVec::Complex property of the calling object are set automatically. The result is stored in the calling object.

The result of division by zero will be the INF constant. Division of zero by zero will result in NAN.

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 12: TMtxVec *Divide(TMtxVec *Vec);

Divide each of calling vector elements with corresponding elements in the Vec object.

#NameTypeDescription
1VecTMtxVec *
Remarks:

Size and TVec::Complex property of the calling object are set automatically. The result is stored in the calling object.

The result of division by zero will be the INF constant. Division of zero by zero will result in NAN.

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 13: TMtxVec *Divide(TMtxVec *Vec, int VecIndex, int Index, int Len);

Divide calling vector elements [Index]...[Index+Len-1] with corresponding elements [VecIndex]...[VecIndex+Len-1] from the Vec object.

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

Store the result in the claling vector. The TVec::Length of the calling vector is not changed. An exception is raised if TVec::ConditionCheck is True and array borders are overrun or underrun.

The result of division by zero will be the INF constant. Division of zero by zero will result in NAN.

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 14: TMtxVec *Divide(TMtxVec *Num, TMtxVec *Den, int NumIndex, int DenIndex, int Index, int Len);

Divide [NumIndex]..[NumIndex+Len-1] Num elements with [DenIndex]..[DenIndex+Len-1] elements in Den.

#NameTypeDescription
1NumTMtxVec *
2DenTMtxVec *
3NumIndexint
4DenIndexint
5Indexint
6Lenint
Remarks:

and store result in the calling vector at positions [Index]..[Index+Len-1] TVec::Size and TVec::Complex property of the calling object are not changed. An exception is raised if TVec::ConditionCheck is True and array borders are overrun or underrun.

The result of division by zero will be the INF constant. Division of zero by zero will result in NAN.

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler