Jampack
Class Swap
- java.lang.Object
-
- Jampack.Swap
-
public class Swap extends java.lang.ObjectSwap interchanges rows and columns of a matrix.
-
-
Constructor Summary
Constructors Constructor and Description Swap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcols(Zmat A, int c1, int c2)Interchances two columns of a Zmat (altered).static voidrows(Zmat A, int r1, int r2)Interchances two rows of a Zmat (altered).
-
-
-
Method Detail
-
rows
public static void rows(Zmat A, int r1, int r2) throws JampackException
Interchances two rows of a Zmat (altered).- Parameters:
A- The Zmat (altered)r1- The index of the first rowr2- The index of the second row- Throws:
JampackException- Thrown for inconsistent row indices.
-
cols
public static void cols(Zmat A, int c1, int c2) throws JampackException
Interchances two columns of a Zmat (altered).- Parameters:
A- The Zmat (altered)c1- The index of the first columnc2- The index of the second column- Throws:
JampackException- Thrown for inconsistent column indices.
-
-
DMelt 3.0 © DataMelt by jWork.ORG