Jampack
Class Pivot
- java.lang.Object
-
- Jampack.Pivot
-
public class Pivot extends java.lang.ObjectPivot 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 Summary
Constructors Constructor and Description Pivot()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Zmatrow(Zmat A, int[] pvt)Pivots the rows of a Zmat (altered) as specified by a pivot array.static Zmatrowi(Zmat A, int[] pvt)Pivots the rows of a Zmat (altered) as in the inverse order specified by a pivot array.
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG