All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jampack.Pivot

java.lang.Object
   |
   +----Jampack.Pivot

public class Pivot
extends Object
Pivot applys a sequence of pivot operations to the rows of a matrix. The pivot sequence is contained in an integer array pvt[], which determines a permution as follows:
      for (k=0; k<pvt.length; k++)
         swap k and pvt[k];
Both k and pvt[k] represent zero-based references to the rows of the matrix. Pivot also has a method to apply the inverse permutation.

Comments: Column pivoting will be added later.


Constructor Index

 o Pivot()

Method Index

 o row(Zmat, int[])
Pivots the rows of a Zmat (altered) as specified by a pivot array.
 o rowi(Zmat, int[])
Pivots the rows of a Zmat (altered) as in the inverse order specified by a pivot array.

Constructors

 o Pivot
 public Pivot()

Methods

 o row
 public static Zmat row(Zmat A,
                        int pvt[]) throws JampackException
Pivots the rows of a Zmat (altered) as specified by a pivot array.

Parameters:
A - The Zmat (altered)
pvt - The pivot array
Returns:
The Zmat A with its rows permuted
Throws: JampackException
Thrown for inconsistent dimensions.
 o rowi
 public static Zmat rowi(Zmat A,
                         int pvt[]) throws JampackException
Pivots the rows of a Zmat (altered) as in the inverse order specified by a pivot array.

Parameters:
A - The Zmat (altered)
pvt - The pivot array
Returns:
The Zmat A with its rows permuted
Throws: JampackException
Thrown for inconsitent dimensions.

All Packages  Class Hierarchy  This Package  Previous  Next  Index