You are here:
Symbol Reference >
MtxVec Namespace
>
Classes
>
TVec Class
>
public
>
CumSum Method
>
TVec.CumSum Method ()
MtxVec VCL
Example
TVec.CumSum Method ()
var
a:
TVec
;
begin
CreateIt
(a);
try
a.SetIt(false,[1,2,3,4]; a.CumSum;
// a = [1,3,6,10]
finally
FreeIt
(a);
end
;
end
;
Copyright (c) 1999-2025 by Dew Research. All rights reserved.