Class SWAP

  • All Implemented Interfaces:
    ArrayOperation

    public abstract class SWAP
    extends java.lang.Object
    implements ArrayOperation
    Given two vectors x and y, the ?swap routines return vectors y and x swapped, each replacing the other.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int THRESHOLD  
    • Constructor Summary

      Constructors 
      Constructor Description
      SWAP()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void exchangeColumns​(double[][] target, int colA, int colB)  
      static void exchangeRows​(double[][] target, int rowA, int rowB)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • THRESHOLD

        public static int THRESHOLD
    • Constructor Detail

      • SWAP

        public SWAP()
    • Method Detail

      • exchangeColumns

        public static void exchangeColumns​(double[][] target,
                                           int colA,
                                           int colB)
      • exchangeRows

        public static void exchangeRows​(double[][] target,
                                        int rowA,
                                        int rowB)