Add Sage compatible matrix