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

Calculates the sum of each of the calling matrix columns.

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

Calculates the sum of each of the calling matrix columns 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,5, 2,3]); A.SumCols(V); // V = [3,8] FreeIt(V); FreeIt(A); end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!