Class JordanExchange


  • public class JordanExchange
    extends Object
    Jordan Exchange swaps the r-th entering variable (row) with the s-th leaving variable (column) in a matrix A.
    • Constructor Detail

      • JordanExchange

        public JordanExchange()
    • Method Detail

      • swap

        public FlexibleTable swap​(FlexibleTable A,
                                  int r,
                                  int s)
        Constructs a new table by exchanging the r-th row with the s-th column in A using Jordan Exchange. For a FlexibleTable, we maintain the row and columns labels.
        Parameters:
        A - a table
        r - the r-th entering variable (row)
        s - the s-th leaving variable (column)
      • swap

        public FlexibleTable swap​(MatrixTable A,
                                  int r,
                                  int s)
        Constructs a new table by exchanging the r-th row with the s-th column in A using Jordan Exchange.
        Parameters:
        A - a table
        r - the r-th entering variable (row)
        s - the s-th leaving variable (column)