jmathlib.toolbox.jmathlib.matrix._private.Jampack
Class Pivot

java.lang.Object
  extended by jmathlib.toolbox.jmathlib.matrix._private.Jampack.Pivot

public class Pivot
extends java.lang.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.

Version:
Pre-alpha
Author:
G. W. Stewart

Constructor Summary
Pivot()
           
 
Method Summary
static Zmat row(Zmat A, int[] pvt)
          Pivots the rows of a Zmat (altered) as specified by a pivot array.
static Zmat rowi(Zmat A, int[] pvt)
          Pivots the rows of a Zmat (altered) as in the inverse order specified by a pivot array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pivot

public Pivot()
Method Detail

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.

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.

FOOTER

BOTTOM