Dew MtxVec NET
TMtx.RowExchange Method
Summary
Exchanges two matrix rows.

Class
TMtx

Declaration
Function RowExchange(i, j: integer): TMtx;

Description
Exchange the i-th and j-th rows of the calling matrix in-place. An exception is raised if matrix bounds are overrun. The indexes i and j are zero based. (the first row has index 0).
 See Also 
ColExchange 

Example 1

var A,B: TMtx; begin CreateIt(A,B); try A.SetIt(2,2,False,[1,3, 2,4]); B.RowExchange(0,1); // B becomes: // [2,4, // 1,3]); finally FreeIt(A,B); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com