public static double[][] transposeMatrix(double[][] matrix)
	{
		int rows = matrix.length;
		int columns = matrix[rows - 1].length;
		double[][] result = new double[columns][rows];
		for(int i = 0; i < rows; ++i)
		{
			for(int j = 0; j < columns; ++j)
			{
				result[j][i] = matrix[i][j];
			}
		}
		return result;
	}