You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TDenseMtxVec Class > public > CumProduct Method > TDenseMtxVec.CumProduct Method (TCplx, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TDenseMtxVec.CumProduct Method (TCplx, integer, integer)

Calculate the cumulative product for all Vec elements.

Pascal
function CumProduct(const Value: TCplx; Index: integer; Len: integer): TMtxVec; overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!