You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > MatrixInt.RowExchange Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.RowExchange Method

Exchanges two matrix Rows.

Syntax
C#
Visual Basic
public TMtxInt RowExchange(int i, int j);

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).

var A,B: TMtxInt; begin CreateIt(A,B); try A.SetIt(2,2,[1,3, 2,4]); B.RowExchange(0,1); // B becomes: // [2,4, // 1,3]); finally FreeIt(A,B); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!