public class Pivot extends Object
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 and Description |
---|
Pivot() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static Zmat row(Zmat A, int[] pvt) throws JampackException
A
- The Zmat (altered)pvt
- The pivot arrayJampackException
- Thrown for inconsistent dimensions.public static Zmat rowi(Zmat A, int[] pvt) throws JampackException
A
- The Zmat (altered)pvt
- The pivot arrayJampackException
- Thrown for inconsitent dimensions.Jas4pp 1.5 © Java Analysis Studio for Particle Physics