Matrix::CumProduct Method

Overload List

#SignatureDescription
1TMtxVec *CumProduct(double Value, int Index, int Len) const;Calculate the cumulative product for all Vec elements.
2TMtxVec *CumProduct(const TCplx &Value, int Index, int Len) const;Calculate the cumulative product for all Vec elements.

Overload 1: TMtxVec *CumProduct(double Value, int Index, int Len) const;

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1Valuedouble
2Indexint
3Lenint
Remarks:

The size must be set by the user. The function will store all powers of Value:

Values[Index + i] := IntPower(Value, i)

at corresponding array Index

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *CumProduct(const TCplx &Value, int Index, int Len) const;

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1Valueconst TCplx &
2Indexint
3Lenint
Remarks:

The size must be set by the user. The function will store all powers of Value:

CValues[Index + i] := IntPower(Value, i)

at corresponding array Index

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler