You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > Sum Method > clMatrix.Sum Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.Sum Method ()

Sums vector values.

Syntax
C#
Visual Basic
public double Sum();

the sum of all calling object elements. An exception is raised if calling object Complex property is true.

var a: clMatrix; b: double; begin a.Size(2,2, clFloat, false); a.CopyFromArray(TDoubleArray.Create(1,2,3,4)); b := a.Sum; // b = 10 end;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!