Set the given dimension to always have the given value, collapsing (returning the union of) all sub-matrices for previously different values of dim.
See Implementation
Set the given dimension to always have the given value, collapsing (returning the union of) all sub-matrices for previously different values of dim.