Matrix filtering as an aid to numerical integration