unify block constraints as MatrixConstraint