Change the signature of some operations to return a undefined value for undefined operation.
undefinedMatrix satisfies Matrix interface.