 to. The result is written into the first element of
                    this array. If this parameter is specified, then no
                    communication of the reduction output takes place from the
                    device to the host.
        :param init: Optional initial value for the reduction, the type of which
                     must match ``arr.dtype``.
        :param stream: Optional CUDA stream in which to perform the reduction.
                       If no stream is specified, the default stream of 0 is
                       used.
        :return: If ``res`` is specified, ``None`` is returned. Otherwise, the
                 result of the reduction is returned.
        r