Here you can find the source of swapNumbers(int i, int j, double[] array)
Parameter | Description |
---|---|
i | row index |
j | col index |
array | modified vector |
private static void swapNumbers(int i, int j, double[] array)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from www . j av a 2 s . c o m*/ * * @param i * row index * @param j * col index * @param array * modified vector */ private static void swapNumbers(int i, int j, double[] array) { double temp; temp = array[i]; array[i] = array[j]; array[j] = temp; } }