Matrix.SumCols Method

procedure SumCols(Dst: TVec);

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

Examples
var  A: Matrix;
    V: Vector;
begin
    A.Size(2,2,False,[[1,5,
        2,3]);

    A.SumCols(V); // V = [3,8]
end;
See Also: Matrix.SumRows