Source code for landlab.graph.matrix.at_patch

import numpy as np

from ...utils.jaggedarray import unravel
from ..sort import sort_patches