swapRows method
Swaps (interchanges) rows i
and j
of matrix
Implementation
static void swapRows(List<List<double>> matrix, int i, int j) {
List<double> temp = matrix[i];
matrix[i] = matrix[j];
matrix[j] = temp;
}
Swaps (interchanges) rows i
and j
of matrix
static void swapRows(List<List<double>> matrix, int i, int j) {
List<double> temp = matrix[i];
matrix[i] = matrix[j];
matrix[j] = temp;
}