Matrix on both sides