-consolidate matrices