extract-methods function

Extract parts of a sparse spam matrix