public Matrix transpose() {
		Matrix matrix = new Matrix(cols, rows);
		for (int i = 0; i < rows; i++) {
			for (int j = 0; j < cols; j++) {
				matrix.set(j, i, this.get(i, j));
			}
		}
		return matrix;
	}