Summary
Sorts the elements in a matrix row(s) in ascending order.
Class
TMtx
Declaration
Function SortAscend: TMtx;
Description
Sorts the elements in calling matrix row(s) in ascending order in-place. If the calling matrix is complex, then complex values are first compared by the absolute value and then by the argument.
Note: Each row is sorted independently from the other.
Example 1
var A: TMtx;
begin
CreateIt(A);
try
A.SetIt(2,2,False,[1,2,
4,2]);
A.SortAscend;
// A becomes:
// [1,2]
// [2,4]
finally
FreeIt(A);
end;
end;
Declaration
Function SortAscend(Col: integer): TMtx;
Description
Performs row based sort in ascending order. The Col parameter defines the column based on which the rows are compared with each other.| Copyright 2008 Dew Research |
http://www.dewresearch.com