Broadcast an ndarray to a specified shape if and only if the specified shape differs from the provided ndarray's shape.