pub fn intersection(l: &Coords, r: &Coords, shape: &[u64]) -> Coords
Expand description

Compute the intersection of two Coords blocks.

Assumes all coordinates are unique.

Panics:

  • if l or r is empty
  • if the number of dimensions of l or r does not match the given shape