Matrix stack realization