You are here:
Symbol Reference >
Dew Namespace
>
Dew.Math Namespace
>
Classes
>
MatrixInt Structure
>
MatrixInt Methods
>
CumSum Method
>
MatrixInt.CumSum Method (int, int)
Dew Math for .NET
Example
MatrixInt.CumSum Method (int, int)
using
Dew.Math
;
using
Dew.Math.Units
;
namespace
Dew.Examples() {
void
Example() {
TVecInt
a; MtxVecInt.CreateIt(
out
a);
try
{ a.SetIt(
true
,
new
double
[] {1,2,3,4}); a.CumSum();
// a = [1,3,6,10]
}
finally
{ MtxVecInt.FreeIt(
ref
a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
Contents
|
Index
|
Home