def compute_area(boxes):
    """
    Computes the area of all the boxes.

    Returns:
        np.array: a vector with areas of each box.
    """
    area = (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1])

    return area