Package org.ojalgo.array.operation
Class SWAP
java.lang.Object
org.ojalgo.array.operation.SWAP
- All Implemented Interfaces:
ArrayOperation
Given two vectors x and y, the ?swap routines return vectors y and x swapped, each replacing the other.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
exchangeColumns
(double[][] target, int colA, int colB) static void
exchangeRows
(double[][] target, int rowA, int rowB)
-
Field Details
-
THRESHOLD
public static int THRESHOLD
-
-
Constructor Details
-
SWAP
public SWAP()
-
-
Method Details
-
exchangeColumns
public static void exchangeColumns(double[][] target, int colA, int colB) -
exchangeRows
public static void exchangeRows(double[][] target, int rowA, int rowB)
-