function_handle filter can operate on rows or cols