TVec.CumProduct Method

Overload List

#SignatureDescription
1TMtxVec CumProduct(TCplx Value)Calculate the cumulative product for all Vec elements.
└ indexed: TMtxVec CumProduct(TCplx Value, Int32 Index, Int32 Len)
2TMtxVec CumProduct(Double Value)Calculate the cumulative product for all Vec elements.
└ indexed: TMtxVec CumProduct(Double Value, Int32 Index, Int32 Len)

Overload 1: TMtxVec CumProduct(TCplx Value)

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1ValueTCplxscalar

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 in CValues[i] := IntPower(Value, i) at corresponding array index.

Indexed: TMtxVec CumProduct(TCplx Value, Int32 Index, Int32 Len)

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1ValueTCplxscalar
2IndexInt32start index
3LenInt32element 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 + 1)

at the corresponding array Index.

Overload 2: TMtxVec CumProduct(Double Value)

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1ValueDoublescalar

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 in Values[i] := IntPower(Value, i) at corresponding array index.

Indexed: TMtxVec CumProduct(Double Value, Int32 Index, Int32 Len)

Calculate the cumulative product for all Vec elements.

#NameTypeDescription
1ValueDoublescalar
2IndexInt32start index
3LenInt32element 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 + 1)

at the corresponding array Index.