You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > TMtx.SumRows Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.SumRows Method

Calculates the sum of each of the calling matrix rows.

Pascal
procedure SumRows(const Dst: TVec); overload;

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

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