You are here:
Symbol Reference >
Dew Namespace
>
Dew.Math Namespace
>
Classes
>
TMtxVecInt Class
>
TMtxVecInt Methods
>
Sum Method
>
TMtxVecInt.Sum Method ()
Dew Math for .NET
TMtxVecInt.Sum Method ()
TMtxVecInt Class
TMtxVecInt Members
Dew.Math Namespace
Sum Method
Example
Collapse All
Sums vector values.
Syntax
C#
Visual Basic
public
int
Sum
();
Public
Function
Sum
()
As
Integer
Returns
the sum of all calling object elements.
Example
using
Dew.Math
;
using
Dew.Math.Units
;
namespace
Dew.Examples() {
void
Example() {
TVecInt
a; MtxVecInt.CreateIt(
out
a);
try
{ a.SetIt(
new
int
[] {1,3,-2});
int
s = a.Sum();
// s = 2
}
finally
{ MtxVecInt.FreeIt(
ref
a); } } }
Group
Sum Method
Links
TMtxVecInt Class
,
TMtxVecInt Members
,
Dew.Math Namespace
,
Sum Method
,
Example
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
Contents
|
Index
|
Home
What do you think about this topic?
Send feedback!