Matrix.SumRows Method

procedure SumRows(Dst: TVec);

The sum of each of the calling matrix rows.

#NameTypeDescription
1DstTVecsource TVec

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 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,2,
        2,4]);

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