You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.SumRows Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.SumRows Method

The sum of each of the calling matrix rows.

Pascal
procedure SumRows(Dst: TVec); overload;

Calculates the sum of each of the calling matrix rows and stores the results in Dst vector. The Length and Complex properties of the Dst vector are adjusted automatically.

var A: Matrix; V: Vector; begin A.Size(2,2,False,[[1,2, 2,4]); A.SumRows(V); // V = [3,6] end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!