Matrix.CumProduct Method

Overload List

#SignatureDescription
1function CumProduct(const Value: TCplx; Index: Integer; Len: Integer): TMtxVec;Calculate the cumulative product for all Vec elements.
2function CumProduct(Value: Double; Index: Integer; Len: Integer): TMtxVec;Calculate the cumulative product for all Vec elements.

Overload 1: function CumProduct(const Value: TCplx; Index: Integer; Len: Integer): TMtxVec;

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1ValueTCplx
2IndexIntegerstart index
3LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

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

Overload 2: function CumProduct(Value: Double; Index: Integer; Len: Integer): TMtxVec;

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1ValueDoublescalar
2IndexIntegerstart index
3LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

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