TMtxByte.SumRows Method

void SumRows(TVecInt Dst)

Calculates the sum of each of the calling matrix Rows.

#NameTypeDescription
1DstTVecIntsource TVecInt

Result: stored in self (calling object)

Remarks:

Calculates the sum of each of the calling matrix Rows and stores the results in Dst vector. The Dew.Math.TMtxVecBase.Length and Dew.Math.TMtxVecInt.IntPrecision properties of the Dst vector are adjusted automatically.

Examples
TMtxInt A;
TVecInt V;
MtxVec.CreateIt(out A);
MtxVec.CreateIt(out V);
A.Size(2,2, [1,2,
2,4]);

A.SumRows(V); // V = new double[] {3,6}
MtxVec.FreeIt(ref V);
MtxVec.FreeIt(ref A);