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.


Constructor Index

 o Swap()

Method Index

 o cols(Zmat, int, int)
Interchances two columns of a Zmat (altered).
 o rows(Zmat, int, int)
Interchances two rows of a Zmat (altered).

Constructors

 o Swap
 public Swap()

Methods

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