All Packages Class Hierarchy This Package Previous Next Index
Class Jampack.Swap
java.lang.Object
|
+----Jampack.Swap
- public class Swap
- extends Object
Swap interchanges rows and columns of a matrix.
-
Swap()
-
-
cols(Zmat, int, int)
- Interchances two columns of a Zmat (altered).
-
rows(Zmat, int, int)
- Interchances two rows of a Zmat (altered).
Swap
public Swap()
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 row
- r2 - 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 column
- c2 - The index of the second column
- Throws: JampackException
- Thrown for inconsistent column indices.
All Packages Class Hierarchy This Package Previous Next Index