Matrix.SumCols Method

void SumCols(TVec Dst)

The sum of each of the calling matrix columns.

#NameTypeDescription
1DstTVecsource TVec

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.Matrix.Length and Dew.Math.Matrix.Complex properties of the Dst vector are adjusted automatically.

Examples
Matrix A;
Vector V;
A.Size(2,2,false,[[1,5,
2,3]);

A.SumCols(V); // V = new double[] {3,8}
See Also: Matrix.SumRows