Jampack
Class Swap
java.lang.Object
Jampack.Swap
public class Swap
- extends java.lang.Object
Swap interchanges rows and columns of a matrix.
- Version:
- Pre-alpha
- Author:
- G. W. Stewart
Constructor Summary |
Swap()
|
Method Summary |
static void |
cols(Zmat A,
int c1,
int c2)
Interchances two columns of a Zmat (altered). |
static void |
rows(Zmat A,
int r1,
int r2)
Interchances two rows of a Zmat (altered). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 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.