public static double[] copyVector(double[] vector) {

		int elements = vector.length;

		double[] copy = new double[elements];

		for (int element = 0; element < elements; element++) {

			copy[element] = vector[element];

		}

		return copy;

	}