public Matrix transpose() {
		Matrix mat = new Matrix(getHeight(), getWidth());
		for (int x = 0; x < getWidth(); x++) {
			for (int y = 0; y < getHeight(); y++) {
				mat.data[y][x] = data[x][y];
			}
		}
		return mat;
	}