.. _orgqr_batch-group-version: orgqr_batch (Group Version) =========================== Generates the real orthogonal matrices ``Q``\ :sub:`i` of the batch of QR factorizations formed by ``geqrf_batch`` (Group Version). This routine belongs to the ``oneapi::mkl::lapack`` namespace. .. contents:: :local: :depth: 1 Description *********** The routine generates the wholes or parts of the ``m``-by-``m`` orthogonal matrices ``Q``\ :sub:`1` of the batch of QR factorizations formed by the routine :ref:`geqrf_batch-group-version`. Usually, ``Q``\ :sub:`1` is determined from the QR factorization of an ``m``-by-``p`` matrix ``A``\ :sub:`1` with ``m`` ≥\ ``p``. To compute the whole matrices ``Q``\ :sub:`1`, use: .. code-block:: cpp orgqr_batch(queue, m, m, p, a, ...) To compute the leading ``p`` columns of ``Q``\ :sub:`1` (which form an orthonormal basis in the space spanned by the columns of ``A``\ :sub:`1`): .. code-block:: cpp orgqr_batch(queue, m, p, p, a, ...) To compute the matrices ``Q``\ :sub:`1`\ :sup:`k` of the QR factorizations of leading ``k`` columns of the matrices ``A``\ :sub:`1`: .. code-block:: cpp orgqr_batch(queue, m, m, k, a, ...) To compute the leading ``k`` columns of ``Q``\ :sub:`1`\ :sup:`k` (which form an orthonormal basis in the space spanned by leading ``k`` columns of the matrices ``A``\ :sub:`1`): .. code-block:: cpp orgqr_batch(queue, m, k, k, a, ...) API *** Syntax ------ .. code-block:: cpp namespace oneapi::mkl::lapack { cl::sycl::event orgqr_batch(cl::sycl::queue &queue, std::int64_t *m, std::int64_t *n, std::int64_t *k, T **a, std::int64_t *lda, T **tau, std::int64_t group_count, std::int64_t *group_sizes, T *scratchpad, std::int64_t scratchpad_size, const std::vector &events = {}) } Function supports the following precisions and devices. .. list-table:: :header-rows: 1 * - T - Devices supported * - ``float`` - Host, CPU, and GPU * - ``double`` - Host, CPU, and GPU Input Parameters ---------------- queue Device queue where calculations will be performed. m Array of ``group_count`` parameters m\ :sub:`g` as previously supplied to :ref:`geqrf_batch-group-version`. n Array of ``group_count`` parameters n\ :sub:`g` as previously supplied to :ref:`geqrf_batch-group-version`. k Array of ``group_count`` parameters ``k``\ :sub:`g` as previously supplied to :ref:`geqrf_batch-group-version`. The number of elementary reflectors whose product defines the matrices ``Q``\ :sub:`i` (0 ≤ ``k``\ :sub:`g` ≤ ``n``\ :sub:`g`) . a Array resulting after a call to `geqrf_batch (Group Version)