Dew MtxVec NET
TMtx.SortAscend Methods
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.

 See Also 
SortDescend 

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