Documentation of 'Jampack.Pivot' Java class
Pivot
Jampack

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

    • Constructor Summary

      Constructors 
      Constructor and Description
      Pivot() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, 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.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.