Factorize matrix block uniform assignment