Question: How to factor a constant number inside a matrix.

restart;
with(LinearAlgebra);
b := Matrix(3, 6, [[-1/2, 0, 1/2, 0, 0, 0], [0, 0, 0, -1/2, 0, 1/2], [0, -1/2, -1/2, 1/2, 1/2, 0]]);
i want  to show like this

Please Wait...