void SumCols(TVecInt Dst)
Calculates the sum of each of the calling matrix columns.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVecInt | source TVecInt |
Result: stored in self (calling object)
Remarks:
Calculates the sum of each of the calling matrix columns 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,5,
2,3]);
A.SumCols(V); // V = new double[] {3,8}
MtxVec.FreeIt(ref V);
MtxVec.FreeIt(ref A);
See Also: TMtxInt.SumRows