Provide default implementation of `mat_apply`.