procedure SumCols(Dst: TVec);
The sum of each of the calling matrix columns.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVec | source 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